So let's better apply the same fix again ...
Signed-off-by: Roland Haeder <roland@mxchange.org>
jphone-core jphone-lib \
jcontacts-core jcontacts-business-core jcontacts-lib \
juser-core juser-lib \
+ jaddressbook-core \
jletter-core jletter-lib jletter-ejb \
jaddressbook-core \
jmailer-ee \
echo "$0: Error: Project '${project}' has non-executable dist.sh!"
exit 1
else
- ./dist.sh
+ if [ "$1" = "r" ]
+ then
+ ./dist.sh r
+ else
+ ./dist.sh
+ fi
fi
done
done
-if [ -n "${GLASSFISH_SSH_PATH}" -a -n "${GLASSFISH_SSH_SERVER}" ]
+if [ "$1" != "r" -a -n "${GLASSFISH_SSH_PATH}" -a -n "${GLASSFISH_SSH_SERVER}" ]
then
echo "$0: Copying to remote '${GLASSFISH_SSH_SERVER}' ..."
scp "${DIST}" "${GLASSFISH_SSH_SERVER}:${GLASSFISH_SSH_PATH}"