From 52ec06a1533ce0529ae56b66a097ea1b2d478eba Mon Sep 17 00:00:00 2001 From: Konano Date: Mon, 27 Nov 2023 13:31:03 +0800 Subject: [PATCH] add arg "update": only update, no run --- run.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/run.sh b/run.sh index b2534f2..c84d517 100755 --- a/run.sh +++ b/run.sh @@ -12,6 +12,10 @@ scriptdir=$(dirname $(realpath $0)) cd $scriptdir && git pull +if [ "$1" = "update" ]; then + exit 0 +fi + if [ "$(id -u)" -eq 0 ]; then echo "Running in root mode." $scriptdir/init_root.sh $@