|
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 |
: #noop |
| 66 |
else |
| 67 |
rv=$? |
| 68 |
echo "${name}: $rv status returned by \"${cmd}\"" |
| 69 |
fi |
| 65 |
|
70 |
|
| 66 |
# Go back to the original dir if required |
71 |
# Go back to the original dir if required |
| 67 |
[ "$chdir" != "no" ] && cd "$starting_dir" |
72 |
[ "$chdir" != "no" ] && cd "$starting_dir" |
| 68 |
- |
|
|