mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-12-27 04:17:38 +00:00
12 lines
120 B
Plaintext
12 lines
120 B
Plaintext
|
#! /bin/bash
|
||
|
|
||
|
f="$1"
|
||
|
ext="${f##*.}"
|
||
|
|
||
|
if [[ "$ext" == "bak" ]]; then
|
||
|
cp $f "${f%.*}"
|
||
|
else
|
||
|
cp "$f" "${f}.bak"
|
||
|
fi
|
||
|
|