diff --git a/seqs/mayan-edms.sh b/seqs/mayan-edms.sh index 668e6c4..7ec75c2 100755 --- a/seqs/mayan-edms.sh +++ b/seqs/mayan-edms.sh @@ -1,7 +1,7 @@ #!/bin/bash toolName="Mayan EDMS" -toolVersion="3.3.9" +toolVersion="3.3.12" toolRoot="/opt/mayan-edms" toolMediaFolder="/opt/mayan-edms/media" @@ -112,7 +112,8 @@ uninstallRemovalsLoc="/tmp/removals.txt" step_13_info() { echo "$toolName management script"; } step_13_alias() { ALIAS="manage"; } step_13() { - if [ -z "$2" ] || [ "$2" == "" ] ; then + shift + if [ -z "$1" ] || [ "$1" == "" ] ; then echo -n "Command (empty for help): " if [ $DRY != 0 ]; then echo " dryrun" @@ -120,7 +121,7 @@ step_13() { read command fi else - command="$2" + command="$@" fi toolScript "$command" }