install features

This commit is contained in:
Brad Stein 2025-07-04 18:30:28 -05:00
parent 6b1a7d1963
commit 927a776d13

View File

@ -95,10 +95,10 @@ if [[ ! -d $SRC_DIR ]]; then
sudo chown "$ORIG_USER":"$ORIG_USER" /var/src
fi
if [[ -d $SRC_DIR/.git ]]; then
sudo -u "$ORIG_USER" git -C "$SRC_DIR" pull --ff-only
sudo -u "$ORIG_USER" git -C "$SRC_DIR" fetch --all --tags --prune
else
sudo -u "$ORIG_USER" git clone "$REPO_URL" "$SRC_DIR"
fip
fi
if sudo -u "$ORIG_USER" git -C "$SRC_DIR" rev-parse --verify --quiet "origin/$REF" >/dev/null; then
sudo -u "$ORIG_USER" git -C "$SRC_DIR" checkout -B "$REF" "origin/$REF"