diff --git a/openwrtbuilder b/openwrtbuilder index c5c607a..8bcf017 100755 --- a/openwrtbuilder +++ b/openwrtbuilder @@ -566,7 +566,6 @@ fromSource() { wt_cmd=(git -C "$GITSRCDIR" worktree add --force - --force --detach "$GITWORKTREEDIR") @@ -590,7 +589,7 @@ fromSource() { ;; esac - # [[ -d "$GITWORKTREEDIR" ]] && rm -rf "$GITWORKTREEDIR" + [[ -d "$GITWORKTREEDIR" ]] && rm -rf "$GITWORKTREEDIR" # overwrite worktree changes execute "${wt_cmd[@]}" "$wt_commit"