Quellcode durchsuchen

Throw usage error on empty action

Alois Mahdal vor 7 Jahren
Ursprung
Commit
8a48a4903e
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1
    0
      src/imapdomo.skel

+ 1
- 0
src/imapdomo.skel Datei anzeigen

92
         *)  break ;;
92
         *)  break ;;
93
     esac done
93
     esac done
94
     Action="$1"; shift
94
     Action="$1"; shift
95
+    test -n "$Action" || usage -w "no action specified"
95
     debug -v Action CfgDir LogDir HeaderDir Debug CdTo
96
     debug -v Action CfgDir LogDir HeaderDir Debug CdTo
96
     lshandlers | grep -qw "$Action" \
97
     lshandlers | grep -qw "$Action" \
97
      || die "no handler for action: $Action.lua in $IMAPDOMO_HOME/handlers"
98
      || die "no handler for action: $Action.lua in $IMAPDOMO_HOME/handlers"