From 3945500ebe0e88eb69526cbab02d7eb5decfc458 Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Wed, 4 May 2011 03:16:43 -0500 Subject: [PATCH] j: ensure j_params works when called for different chroots in the same invocation --- j | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/j b/j index 537aaa6..b3aaaf3 100755 --- a/j +++ b/j @@ -80,6 +80,7 @@ j_params() { fi # Where is the shell? + jshell="" for shell in /bin/bash /usr/bin/bash /usr/local/bin/bash /bin/sh do if [ -f "${jdir}/${shell}" ] @@ -90,11 +91,11 @@ j_params() { done if [ -z "${jshell}" ] then - printf "jerror='%s'\n", "unable to locate usable shell; is this a jail?" + printf "jerror='%s'\n" "unable to locate usable shell; is this a jail?" return 1 fi - printf "jname='%s' jdir='%s' jshell='%s'\n" "${jname}" "${jdir}" "${jshell}" + printf "jerror='' jname='%s' jdir='%s' jshell='%s'\n" "${jname}" "${jdir}" "${jshell}" ) } -- 2.42.0