ZSH: Functions can't work with ~

This commit is contained in:
Tom Willemsen 2012-01-06 16:05:01 +01:00
parent 1a03a3b9c9
commit c3d398b1f0

View file

@ -1,8 +1,8 @@
# -*- mode: shell-script -*- # -*- mode: shell-script -*-
if [ -n "$1" ]; then if [ -n "$1" ]; then
if [ -e "~/.local/share/$1.cnt" ]; then if [ -e "$HOME/.local/share/$1.cnt" ]; then
cnt=$(/bin/cat "~/.local/share/$1.cnt") cnt=$(/bin/cat "$HOME/.local/share/$1.cnt")
fi fi
if [ -z "$cnt" ]; then if [ -z "$cnt" ]; then