|
@@ -23,15 +23,15 @@ inst_out 'Script begins'
|
|
|
if [ $# -lt 1 ]
|
|
|
then
|
|
|
inst_fatal 'No script provided'
|
|
|
- inst_out 'Usage : inst <script> [user] [target] [prompting:enable|disable]'
|
|
|
+ inst_out 'Usage : inst <script> [user] [prompting:enable|disable] [target]'
|
|
|
exit 1
|
|
|
fi
|
|
|
|
|
|
# Initialize variables
|
|
|
script=$1
|
|
|
user=$USER
|
|
|
-target='/usr/local/bin/'
|
|
|
prompting='enable'
|
|
|
+target='/usr/local/bin/'
|
|
|
|
|
|
if [ $# -gt 1 ] && [ ! -z $2 ]
|
|
|
then
|
|
@@ -40,12 +40,12 @@ fi
|
|
|
|
|
|
if [ $# -gt 2 ] && [ ! -z $3 ]
|
|
|
then
|
|
|
- target=$3
|
|
|
+ prompting=$3
|
|
|
fi
|
|
|
|
|
|
if [ $# -gt 3 ] && [ ! -z $4 ]
|
|
|
then
|
|
|
- prompting=$4
|
|
|
+ target=$4
|
|
|
fi
|
|
|
|
|
|
# Check file existence
|