mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-24 14:16:42 +00:00
Allow bak to support multiple files at once
This commit is contained in:
parent
46a1d63970
commit
62d4d54ccc
@ -1,10 +1,10 @@
|
||||
#! /bin/bash
|
||||
|
||||
f="$1"
|
||||
ext="${f##*.}"
|
||||
|
||||
if [[ "$ext" == "bak" ]]; then
|
||||
for f in "$@"; do
|
||||
ext="${f##*.}"
|
||||
if [[ "$ext" == "bak" ]]; then
|
||||
cp "$f" "${f%.*}"
|
||||
else
|
||||
else
|
||||
cp "$f" "${f}.bak"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user