We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7649b5b commit a0e95e5Copy full SHA for a0e95e5
.buildkite/hooks/pre-command
@@ -9,13 +9,11 @@ pushd "$(dirname "${BASH_SOURCE[0]}")"/../..
9
WORKDIR=$(pwd)
10
PIDFILE=/var/lock/dobackup.pid
11
12
-remove_pidfile()
13
-{
+remove_pidfile() {
14
rm -f "$PIDFILE"
15
}
16
17
-another_instance()
18
+another_instance() {
19
echo "There is another instance running, skipping"
20
exit 0
21
@@ -24,7 +22,10 @@ if [ -f "$PIDFILE" ]; then
24
22
kill -0 "$(cat $PIDFILE)" && another_instance
25
23
fi
26
trap remove_pidfile EXIT
27
-echo $$ > "$PIDFILE"
+echo $$ >"$PIDFILE"
+
+echo "Checking if we have github-cli"
28
+asdf list-all github-cli
29
30
echo "Installing asdf dependencies as defined in '${WORKDIR}/.tool-versions':"
31
asdf install
0 commit comments