Skip to content

Commit

Permalink
fix git-push-all-remotes.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
milahu committed Oct 7, 2024
1 parent ad0c0e3 commit c2cfbb4
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/scripts/git-push-all-remotes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,23 @@
set -e
set -x

# some file typical for this repo
repo_file="src/whoaremyfriends/wersindmeinefreunde.html"

bak_pwd="$PWD"

# chdir to repo root
cd "$(dirname "$0")"/../..
while true; do
if [ -e "$repo_file" ]; then
echo "found the alchi repo root at ${PWD@Q}"
break
fi
if [ "$PWD" = "/" ]; then
echo "error: failed to find the alchi repo root from ${bak_pwd@Q}"
exit 1
fi
cd ..
done

repo_root="$PWD"

Expand Down

0 comments on commit c2cfbb4

Please sign in to comment.