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