From b4bddc6b98ae5f15cb3f86a553516140ed0d96aa Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Fri, 13 Jul 2012 11:15:03 -0500 Subject: [PATCH] j: realpath does not always exist; shift does not always succeed with no args --- j | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/j b/j index 5b50932..c341ac7 100755 --- a/j +++ b/j @@ -43,9 +43,9 @@ EOF } cmd="$(basename "${0}")" -j="$(realpath "$(dirname "${0}")")" +j="$(readlink -f "$(dirname "${0}")")" jarch="${J_ARCH:-$(uname -m)}" -jbase="${J_BASE:-$(realpath "${j}/../")}" +jbase="${J_BASE:-$(readlink -f "${j}/../")}" jseed="${j}/seeds" jname="${J_NAME:-$(basename "${1}")}" #" juser="${J_USER}" @@ -64,7 +64,7 @@ jcgroup="freezer" jcgparent="j" # Remove chroot name from argument stack, if passed in -[ "${J_NAME}" ] || shift +[ "${J_NAME}" ] || shift && true # Propagate certain environment variables; sterilize the rest of the environment jenv=" -- 2.42.0