install features
This commit is contained in:
parent
6b1a7d1963
commit
927a776d13
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user