Skip to content
Snippets Groups Projects
Commit 9d23bb72 authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- fixed param for debug

- fixed warnings
parent a50e5a23
No related branches found
No related tags found
No related merge requests found
...@@ -176,7 +176,7 @@ get_cli_args() { ...@@ -176,7 +176,7 @@ get_cli_args() {
WITH_PIPE=1 WITH_PIPE=1
shift shift
;; ;;
-d | --debug) -D | --debug)
WITH_DEBUG=1 WITH_DEBUG=1
shift shift
;; ;;
...@@ -186,12 +186,16 @@ get_cli_args() { ...@@ -186,12 +186,16 @@ get_cli_args() {
;; ;;
esac esac
done done
if [ "$FILES_MODE" != "sort" -a "$FILES_MODE" != "delete" -a "$FILES_MODE" != "nothing" ]; then if [ "$FILES_MODE" != "sort" ] && [ "$FILES_MODE" != "delete" ] && [ "$FILES_MODE" != "nothing" ]; then
error "param --files-mode must be 'sort', 'delete' or 'nothing'!" error "param --files-mode must be 'sort', 'delete' or 'nothing'!"
exit 1 exit 1
fi fi
if [ "$MODE" != "auto" -a "$MODE" != "mediathek" -a "$MODE" != "fotothek" \ if [ "$MODE" != "auto" ] \
-a "$MODE" != "save" -a "$MODE" != "kitodo" -a "$MODE" != "lfulg" ]; then && [ "$MODE" != "mediathek" ] \
&& [ "$MODE" != "fotothek" ] \
&& [ "$MODE" != "save" ] \
&& [ "$MODE" != "kitodo" ] \
&& [ "$MODE" != "lfulg" ]; then
error "param --mode must be 'auto', 'mediathek', 'fotothek', 'save', 'kitodo' or 'lfulg'!" error "param --mode must be 'auto', 'mediathek', 'fotothek', 'save', 'kitodo' or 'lfulg'!"
exit 1 exit 1
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment