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:
rupa committed 2013-05-20 20:50:19 -04:00
1 parent db827eec15
commit 8aac576b7c
1 file changed
-5
-5
View File
@@ -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."
}