diff options
| author | jakobst1n <jakob@jakobstendahl.no> | 2026-10-16 09:01:32 +0200 |
|---|---|---|
| committer | jakobst1n <jakob@jakobstendahl.no> | 2026-10-16 09:01:32 +0200 |
| commit | 81c11c957cf728fb8837bf6b37025373b4482722 (patch) | |
| tree | c2e725545611fb7d5b3291322c13cffb74714e40 | |
| parent | 20a9fa7da4bbe569658df4c5ba5b0877cc513263 (diff) | |
| download | dotfiles-81c11c957cf728fb8837bf6b37025373b4482722.tar.gz dotfiles-81c11c957cf728fb8837bf6b37025373b4482722.zip | |
Wait for lockfile
| -rwxr-xr-x | bootstrap.sh | 12 |
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 + |
