From e65b619ca7f7b3cc1391e90a202ed7a43ca2a7aa Mon Sep 17 00:00:00 2001 From: Martin Winkler Date: Mon, 10 Feb 2020 15:46:32 +0100 Subject: [PATCH] Bump mayan version to 3.3.12 Pass all arguments to management script --- seqs/mayan-edms.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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" }