Skip to content

Commit

Permalink
Merge pull request #6 from deliciousinsights/fix/sed-quiet
Browse files Browse the repository at this point in the history
fix(sed): use `-n` option since `--quiet` has been removed
  • Loading branch information
Maxime Bréhin authored Apr 9, 2020
2 parents 6b7345f + 3a16cd9 commit 940303a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-clean-stale-local
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function getDefaultBranch()
{
local cachedPath="$(git rev-parse --git-dir)/refs/remotes/origin/HEAD"
if [ -f "$cachedPath" ]; then
sed --quiet 's@ref: refs/remotes/origin/@@p' "$cachedPath"
sed -n 's@ref: refs/remotes/origin/@@p' "$cachedPath"
return
fi
local ref=$(git ls-remote --symref origin HEAD | sed -n 's@ref: refs/heads/@@p' | cut -f1)
Expand Down

0 comments on commit 940303a

Please sign in to comment.