Remove backup files upon restore
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Wed, 5 Aug 2009 06:39:56 +0000 (23:39 -0700)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Wed, 5 Aug 2009 06:39:56 +0000 (23:39 -0700)
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
scripts/driver-select

index 544de59806b6ed59920ba3663291034ab0d30379..c7c97df9ab4cbc37706594fdae09b3a0855dc2c8 100755 (executable)
@@ -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 {