1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2025-02-05 15:43:22 -08:00

minor fixes

This commit is contained in:
Connor Olding 2020-12-31 09:09:41 +01:00
parent d35c492850
commit 443c9a207e

View file

@ -163,7 +163,7 @@ trash() {
} }
explore() { explore() {
explorer "$(cygpath -w "$1")" explorer "$(cygpath -w "${1:-.}")"
} }
pegg() { pegg() {
@ -182,8 +182,8 @@ baks() { # backup, timestamped
local now="$(date -u '+%y-%m-%d_%H-%M-%S')" local now="$(date -u '+%y-%m-%d_%H-%M-%S')"
local bak="$fp.$now.bak" local bak="$fp.$now.bak"
if [ -s "$bak" ]; then if [ -s "$bak" ]; then
echo "how in the hell? $bak already exists" >&2 printf "how in the hell? %s already exists\n" "$bak" >&2
return return 1
fi fi
cp -p "$fp" "$bak" cp -p "$fp" "$bak"
} }