1
0
mirror of https://github.com/ViViDboarder/shoestrap.git synced 2025-01-06 17:57:38 +00:00
shoestrap/assets/default/bin/bak
2021-12-14 18:07:16 -08:00

11 lines
160 B
Bash
Executable File

#! /bin/bash
for f in "$@"; do
ext="${f##*.}"
if [[ "$ext" == "bak" ]]; then
cp "$f" "${f%.*}"
else
cp "$f" "${f}.bak"
fi
done