1
0
mirror of https://github.com/skywind3000/z.lua synced 2026-03-17 21:29:48 +00:00

Don't return failed exit code when $_ZL_ECHO is unbind

Using the "&&" operator returns the exit code of the first failed
command, and when $_ZL_ECHO is unbind always return 1.
This commit is contained in:
Mario Rodas
2019-01-19 14:16:36 -05:00
parent f2e328df22
commit 5aa17c3328

4
z.lua
View File

@@ -1311,7 +1311,9 @@ _zlua() {
else
$_ZL_CD "$dest"
fi
[ -n "$_ZL_ECHO" ] && pwd
if [ -n "$_ZL_ECHO" ]; then
pwd
fi
fi
fi
}