/ Published in: Bash
Check for empty variable. proceed accordingly
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
if [[ -n $RELEASE]] then SVN_DIR=/release/$RELEASE if [ -d $SVN_DIR ] then echo "-------------------------------" echo "You have chosen to build with $SVN_DIR" echo "-------------------------------" /home/bin/BuildRelease.sh $SVN_DIR else echo "the $SVN_DIR does not exist fi fi