ZSH: Functions can't work with ~
This commit is contained in:
parent
1a03a3b9c9
commit
c3d398b1f0
1 changed files with 2 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
|||
# -*- mode: shell-script -*-
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
if [ -e "~/.local/share/$1.cnt" ]; then
|
||||
cnt=$(/bin/cat "~/.local/share/$1.cnt")
|
||||
if [ -e "$HOME/.local/share/$1.cnt" ]; then
|
||||
cnt=$(/bin/cat "$HOME/.local/share/$1.cnt")
|
||||
fi
|
||||
|
||||
if [ -z "$cnt" ]; then
|
||||
|
|
Loading…
Reference in a new issue