File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /bin/bash
22
33set -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" " $@ "
You can’t perform that action at this time.
0 commit comments