From 1bddab3c7db2b10ce6adfde37f963ee3aea2164b Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Tue, 4 Aug 2009 23:39:56 -0700 Subject: [PATCH] Remove backup files upon restore Signed-off-by: Luis R. Rodriguez --- scripts/driver-select | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- 2.30.2