Skip to content

Commit a0e95e5

Browse files
wip: do we have github-cli wtf asdf
1 parent 7649b5b commit a0e95e5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.buildkite/hooks/pre-command

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,11 @@ pushd "$(dirname "${BASH_SOURCE[0]}")"/../..
99
WORKDIR=$(pwd)
1010
PIDFILE=/var/lock/dobackup.pid
1111

12-
remove_pidfile()
13-
{
12+
remove_pidfile() {
1413
rm -f "$PIDFILE"
1514
}
1615

17-
another_instance()
18-
{
16+
another_instance() {
1917
echo "There is another instance running, skipping"
2018
exit 0
2119
}
@@ -24,7 +22,10 @@ if [ -f "$PIDFILE" ]; then
2422
kill -0 "$(cat $PIDFILE)" && another_instance
2523
fi
2624
trap remove_pidfile EXIT
27-
echo $$ > "$PIDFILE"
25+
echo $$ >"$PIDFILE"
26+
27+
echo "Checking if we have github-cli"
28+
asdf list-all github-cli
2829

2930
echo "Installing asdf dependencies as defined in '${WORKDIR}/.tool-versions':"
3031
asdf install

0 commit comments

Comments
 (0)