Commit 1335503c authored by Roman Inflianskas's avatar Roman Inflianskas

bak: fixed directory handling

parent 672ec089
function __bak_name
# trim / for directories
set arg (echo $argv[1] | sed "s/\///")
set arg (echo $argv[1] | sed 's/\/$//')
echo "$arg.(date +"%Y%m%d_%H%M%S").bak"
end
......
......@@ -2,5 +2,5 @@
# (c) Roman Inflianskas (rominf) <infroma@gmail.com>, 2014
function cpbak
__bak cp $argv
__bak 'cp -a' $argv
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment