revert warning if z.sh is being exec'd and not sourced
Because we can't reliably determine if we're really being exec'd.
This commit is contained in:
1 parent
db827eec15
commit
8aac576b7c
1 file changed
-5
@@ -22,11 +22,6 @@
|
||||
# * z -l foo # list matches instead of cd
|
||||
# * z -c foo # restrict matches to subdirs of $PWD
|
||||
|
||||
case $- in
|
||||
*i*) ;;
|
||||
*) echo 'ERROR: z.sh is meant to be sourced, not directly executed.'
|
||||
esac
|
||||
|
||||
[ -d "${_Z_DATA:-$HOME/.z}" ] && {
|
||||
echo "ERROR: z.sh's datafile (${_Z_DATA:-$HOME/.z}) is a directory."
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user