Lines 61-67
do
Link Here
|
61 |
# Change to the instance's home dir if required |
61 |
# Change to the instance's home dir if required |
62 |
[ "$chdir" != "no" ] && eval cd ~$name"-koha" |
62 |
[ "$chdir" != "no" ] && eval cd ~$name"-koha" |
63 |
|
63 |
|
64 |
koha-shell ${name} -c "${cmd}" |
64 |
if ! koha-shell ${name} -c "${cmd}"; then |
|
|
65 |
echo "${name}: non-zero status returned by \"${cmd}\"" |
66 |
fi |
65 |
|
67 |
|
66 |
# Go back to the original dir if required |
68 |
# Go back to the original dir if required |
67 |
[ "$chdir" != "no" ] && cd "$starting_dir" |
69 |
[ "$chdir" != "no" ] && cd "$starting_dir" |
68 |
- |
|
|