Commit ea0797f8 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmbs: use cd instead pushd/popd

parent f4ec0504
...@@ -118,11 +118,11 @@ check_gear_and_tag() ...@@ -118,11 +118,11 @@ check_gear_and_tag()
if is_gear $SPECDIR ; then if is_gear $SPECDIR ; then
# needed correct user.name/user.email for get GPG id # needed correct user.name/user.email for get GPG id
pushd $SPECDIR >/dev/null cd $SPECDIR >/dev/null
# default: <VERSION>-<RELEASE> # default: <VERSION>-<RELEASE>
docmd $GEARCTAG $FORCE || RESULT=1 docmd $GEARCTAG $FORCE || RESULT=1
test -z "$TAG" || docmd git tag -v "$TAG" || fatal "Tag $TAG is missed in repo" test -z "$TAG" || docmd git tag -v "$TAG" || fatal "Tag $TAG is missed in repo"
popd >/dev/null cd - >/dev/null
fi fi
return $RESULT return $RESULT
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment