bugfix bf()
This commit is contained in:
parent
625bc38673
commit
7e523091c6
|
@ -204,10 +204,10 @@ DATE=$(/bin/date +%Y-%m-%d_%H:%M:%S.%N)
|
|||
local TMPFILE=tmp.${DATE}.sw
|
||||
mv "$1" $TMPFILE && mv "$2" "$1" && mv $TMPFILE $2
|
||||
}
|
||||
bf()
|
||||
bf ()
|
||||
{
|
||||
DATE=$(/bin/date +%Y-%m-%d_%H:%M:%S.%N)
|
||||
local TMPFILE=tmp.${DATE}.bak
|
||||
DATE=$(/bin/date +%Y-%m-%d_%H:%M:%S.%N);
|
||||
local TMPFILE=${1}.${DATE}.bak;
|
||||
/bin/cp "$1" $TMPFILE
|
||||
}
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue