From c9e2c35347a43957fbb6a13cdc207e67473ca08f Mon Sep 17 00:00:00 2001 From: Paul Feitzinger Date: Mon, 25 Nov 2024 18:35:29 -0500 Subject: [PATCH] fix quoting in ./run.sh to handle paths with spaces fixes #2 --- run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/run.sh b/run.sh index f5199c9..0c49366 100755 --- a/run.sh +++ b/run.sh @@ -8,14 +8,14 @@ while getopts "c:f" flag; do esac done -if [ -z ${SIGNAL_DIR+x} ]; then +if [ -z "${SIGNAL_DIR+x}" ]; then echo -e "a signal configuration directory is required. for example:\n" echo -e " $ run.sh -c ~/.config/Signal/\n" exit 1 fi if [ $FILTER -eq 1 ]; then - docker run -it -v $SIGNAL_DIR:/root/.config/Signal -v ./output:/output sigint -f config/chat_list.txt + docker run -it -v "$SIGNAL_DIR":/root/.config/Signal -v ./output:/output sigint -f config/chat_list.txt else - docker run -it -v $SIGNAL_DIR:/root/.config/Signal -v ./output:/output sigint + docker run -it -v "$SIGNAL_DIR":/root/.config/Signal -v ./output:/output sigint fi