summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2011-12-26 22:05:41 +0100
committerAdrian C. (anrxc) <anrxc@sysphere.org>2011-12-26 22:07:59 +0100
commitc746da1edba21db230101469a4a295d96b2ed6cc (patch)
tree9ee38f85d3b5d6e0aaa8b30ac9fcc2a0653f9108
parent6cab3921c3a7bf0e9e38ff3b387660b2cc11937b (diff)
downloaddotfiles-c746da1edba21db230101469a4a295d96b2ed6cc.tar.xz
zshrc: fix extract() error notifications
Wrong usage of quotes caused filenames not to be printed.
-rw-r--r--zshrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/zshrc b/zshrc
index f1c5100..f0ca08f 100644
--- a/zshrc
+++ b/zshrc
@@ -215,10 +215,10 @@ function extract () {
*.7z) 7z x "$1" ;;
*.Z) uncompress "$1" ;;
*.gpg) gpg2 -d "$1" | tar -xvzf - ;;
- *) echo 'Error: failed to extract "$1"' ;;
+ *) echo "Error: failed to extract $1" ;;
esac
else
- echo 'Error: "$1" is not a valid file for extraction'
+ echo "Error: $1 is not a valid file for extraction"
fi
}