appenv: Added option -l to install.sh

This commit is contained in:
Javi Fontan committed 2012-09-11 12:10:13 +02:00
1 parent fe47b7af0b
commit 2bffeeca8e
1 file changed
+3 -1
+3 -1
View File
@@ -15,7 +15,7 @@
# limitations under the License. #
#--------------------------------------------------------------------------- #
TEMP_OPT=`getopt -o d: -n 'install.sh' -- "$@"`
TEMP_OPT=`getopt -o ld: -n 'install.sh' -- "$@"`
if [ $? != 0 ] ; then
usage
@@ -24,11 +24,13 @@ fi
eval set -- "$TEMP_OPT"
LINK="no"
SRC_DIR=$PWD
while true ; do
case "$1" in
-d) ROOT="$2" ; shift 2 ;;
-l) LINK="yes" ; shift ;;
--) shift ; break ;;
*) usage; exit 1 ;;
esac