mirror of
https://github.com/frej/fast-export.git
synced 2026-01-21 05:32:04 +01:00
hg-fast-export.sh/hg-reset.sh: replace egrep with grep
According to the POSIX standard, egrep is an obsolescent equivalent of grep -E. In fact, the patterns actually being used with egrep do not require use of extended regular expressions at all, so a plain 'grep' can be used rather than 'grep -E'. Replace egrep with grep to improve compatibility across systems.
This commit is contained in:
committed by
Frej Drejhammar
parent
1be636db36
commit
779e2f6da8
@@ -71,7 +71,7 @@ done
|
||||
|
||||
# for convenience: get default repo from state file
|
||||
if [ x"$REPO" = x -a -f "$GIT_DIR/$PFX-$SFX_STATE" ] ; then
|
||||
REPO="`egrep '^:repo ' "$GIT_DIR/$PFX-$SFX_STATE" | cut -d ' ' -f 2`"
|
||||
REPO="`grep '^:repo ' "$GIT_DIR/$PFX-$SFX_STATE" | cut -d ' ' -f 2`"
|
||||
echo "Using last hg repository \"$REPO\""
|
||||
fi
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ done
|
||||
|
||||
# for convenience: get default repo from state file
|
||||
if [ x"$REPO" = x -a -f "$GIT_DIR/$PFX-$SFX_STATE" ] ; then
|
||||
REPO="`egrep '^:repo ' "$GIT_DIR/$PFX-$SFX_STATE" | cut -d ' ' -f 2`"
|
||||
REPO="`grep '^:repo ' "$GIT_DIR/$PFX-$SFX_STATE" | cut -d ' ' -f 2`"
|
||||
echo "Using last hg repository \"$REPO\""
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user