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
|
local TMPFILE=tmp.${DATE}.sw
|
||||||
mv "$1" $TMPFILE && mv "$2" "$1" && mv $TMPFILE $2
|
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
|
||||||
|
|
Loading…
Reference in New Issue