From: Luis R. Rodriguez Date: Wed, 5 Aug 2009 06:39:56 +0000 (-0700) Subject: Remove backup files upon restore X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1bddab3c7db2b10ce6adfde37f963ee3aea2164b;p=openwrt%2Fstaging%2Fblogic.git Remove backup files upon restore Signed-off-by: Luis R. Rodriguez --- diff --git a/scripts/driver-select b/scripts/driver-select index 544de59806b6..c7c97df9ab4c 100755 --- a/scripts/driver-select +++ b/scripts/driver-select @@ -120,7 +120,8 @@ function restore_file { #ORIG=$(shell ${1%%.${BACKUP_EXT}}) ORIG=${1%%.bk} cp $1 $ORIG - echo -e "Restored makefile: ${CYAN}${ORIG}${NORMAL}" + rm -f $1 + echo -e "Restored makefile: ${CYAN}${ORIG}${NORMAL} (and removed backup)" } function restore_compat {