Skip to content

Commit 7edb5cc

Browse files
committed
inline wrapper ci script while we test it
1 parent 00f4691 commit 7edb5cc

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed
Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
1-
#!/bin/bash
1+
#!/bin/bash
22

33
set -euo pipefail
44

5-
git-conceal unlock env:GIT_CONCEAL_ENCRYPTION_KEY
5+
# If installed in the $PATH, execute it (replacing this current process)
6+
if command -v git-conceal &> /dev/null; then
7+
exec git-conceal "$@"
8+
fi
9+
10+
INSTALL_DIR="${PWD}"
11+
# If was already previously installed in INSTALL_DIR, execute it (replacing this current process)
12+
if [[ -x "${INSTALL_DIR}/git-conceal" ]]; then
13+
exec "${INSTALL_DIR}/git-conceal" "$@"
14+
fi
15+
16+
# Otherwise, install it locally and execute it
17+
echo "Installing git-conceal..."
18+
mkdir -p "${INSTALL_DIR}"
19+
curl -fsSL https://raw.githubusercontent.com/Automattic/git-conceal/install-script/install.sh | bash -s -- --prefix "${INSTALL_DIR}"
20+
echo "git-conceal installed successfully"
21+
exec "${INSTALL_DIR}/git-conceal" "$@"

0 commit comments

Comments
 (0)