From 443c9a207e2d93f046081477d6b14166f4aaebc3 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Thu, 31 Dec 2020 09:09:41 +0100 Subject: [PATCH] minor fixes --- home/-shrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/home/-shrc b/home/-shrc index 3b822fd..4bd8754 100644 --- a/home/-shrc +++ b/home/-shrc @@ -163,7 +163,7 @@ trash() { } explore() { - explorer "$(cygpath -w "$1")" + explorer "$(cygpath -w "${1:-.}")" } pegg() { @@ -182,8 +182,8 @@ baks() { # backup, timestamped local now="$(date -u '+%y-%m-%d_%H-%M-%S')" local bak="$fp.$now.bak" if [ -s "$bak" ]; then - echo "how in the hell? $bak already exists" >&2 - return + printf "how in the hell? %s already exists\n" "$bak" >&2 + return 1 fi cp -p "$fp" "$bak" }