fixup! WIP: enable gickup on bicep
Some checks failed
Eval nix flake / evals (push) Has been cancelled
Some checks failed
Eval nix flake / evals (push) Has been cancelled
This commit is contained in:
@@ -318,13 +318,13 @@ in
|
||||
|
||||
mkdir -p "$(dirname "$SYMLINK_PATH")"
|
||||
|
||||
EXPECTED_SYMLINK_TARGET="''${repository}/''${LAST_REVISION}"
|
||||
EXPECTED_SYMLINK_TARGET=$(realpath "''${repository}/''${LAST_REVISION}")
|
||||
EXISTING_SYMLINK_TARGET=$(realpath "$SYMLINK_PATH")
|
||||
|
||||
if [[ "$EXISTING_SYMLINK_TARGET" != "$EXPECTED_SYMLINK_TARGET" ]]; then
|
||||
echo "Updating symlink for $REPOSITORY_RELATIVE_DIRS"
|
||||
rm "$SYMLINK_PATH" ||:
|
||||
ln -s "$EXPECTED_SYMLINK_TARGET" "$SYMLINK_PATH"
|
||||
ln -rs "$EXPECTED_SYMLINK_TARGET" "$SYMLINK_PATH"
|
||||
else
|
||||
echo "Symlink already up to date, continuing..."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user