bugfix bf()

This commit is contained in:
motius 2017-08-09 15:36:07 +02:00
parent 625bc38673
commit 7e523091c6
1 changed files with 3 additions and 3 deletions

View File

@ -206,8 +206,8 @@ mv "$1" $TMPFILE && mv "$2" "$1" && mv $TMPFILE $2
} }
bf () bf ()
{ {
DATE=$(/bin/date +%Y-%m-%d_%H:%M:%S.%N) DATE=$(/bin/date +%Y-%m-%d_%H:%M:%S.%N);
local TMPFILE=tmp.${DATE}.bak local TMPFILE=${1}.${DATE}.bak;
/bin/cp "$1" $TMPFILE /bin/cp "$1" $TMPFILE
} }
fi fi