aboutsummaryrefslogtreecommitdiff
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorjakobst1n <jakob@jakobstendahl.no>2026-10-16 09:01:32 +0200
committerjakobst1n <jakob@jakobstendahl.no>2026-10-16 09:01:32 +0200
commit81c11c957cf728fb8837bf6b37025373b4482722 (patch)
treec2e725545611fb7d5b3291322c13cffb74714e40 /bootstrap.sh
parent20a9fa7da4bbe569658df4c5ba5b0877cc513263 (diff)
downloaddotfiles-81c11c957cf728fb8837bf6b37025373b4482722.tar.gz
dotfiles-81c11c957cf728fb8837bf6b37025373b4482722.zip
Wait for lockfile
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index e54d75c..7981884 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -1,5 +1,7 @@
#!/bin/bash
+set -x
+
echo "Initializing repo"
PKGS=(m4 make git)
@@ -57,4 +59,14 @@ EOF
cd $HOME/.config/coderv2/dotfiles
m4 -P Makefile.m4 > Makefile
+
+echo "Waiting a bit to ensure any lock file is created"
+sleep 5
+LOCK_FILE="$HOME/.startup-script-lock"
+while [[ -e "$LOCK_FILE" ]]; do
+ echo "Waiting for ${LOCK_FILE} to be released"
+ sleep 5
+done
+
make
+