Skip to content

Commit

Permalink
Fix PWD being wrong when checking relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillerDragon committed Sep 5, 2024
1 parent 32cb892 commit 17e6712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -651,10 +651,10 @@ function update_configs() {
cd cfg || exit 1
git_save_pull
fi
cd "$SCRIPT_ROOT" || exit 1
local sub_cfg
for sub_cfg in ./cfg/*/
do
cd "$SCRIPT_ROOT" || exit 1
[[ -d "$sub_cfg" ]] || continue
[[ -d "$sub_cfg".git ]] || continue

Expand Down

0 comments on commit 17e6712

Please sign in to comment.