indentation in the clone_dispatcharr_repo function for consistency and readability:

- Unindented `EOSU` marker and `else` block
   - Aligned code structure within the conditional blocks
This commit is contained in:
Michael Bateson 2025-08-26 18:26:17 +10:00
parent 750bf90576
commit 4942393842

14
debian_install.sh Normal file → Executable file
View file

@ -146,13 +146,13 @@ clone_dispatcharr_repo() {
git fetch origin
git checkout $DISPATCH_BRANCH
git pull origin $DISPATCH_BRANCH
EOSU
else
echo ">>> Cloning Dispatcharr repo into ${APP_DIR}..."
rm -rf "$APP_DIR"/*
chown "$DISPATCH_USER:$DISPATCH_GROUP" "$APP_DIR"
su - "$DISPATCH_USER" -c "git clone -b $DISPATCH_BRANCH https://github.com/Dispatcharr/Dispatcharr.git $APP_DIR"
fi
EOSU
else
echo ">>> Cloning Dispatcharr repo into ${APP_DIR}..."
rm -rf "$APP_DIR"/*
chown "$DISPATCH_USER:$DISPATCH_GROUP" "$APP_DIR"
su - "$DISPATCH_USER" -c "git clone -b $DISPATCH_BRANCH https://github.com/Dispatcharr/Dispatcharr.git $APP_DIR"
fi
}
##############################################################################