Skip to content

Commit

Permalink
Do not use (), otherwise there's nothing to popd
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioc committed Jan 30, 2024
1 parent a76fb1d commit d61109f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion download-funcs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ download_from_git () {
add_branch="--branch $branch"
fi
(if [ -d $dir ]; then
(pushd $dir || return 1) &&
pushd $dir &&
git reset --hard &&
git pull &&
local git_result=$?
Expand Down

0 comments on commit d61109f

Please sign in to comment.