contrib: untrap before calling popd

we need to untrap before calling popd if the script is being run from a
directory different than the git repo. popd will go back to the previous
directory and trap will execute reset_hard_origin function on EXIT.
If we are not in the righ directory, this will fail.

Signed-off-by: Sébastien Han <seb@redhat.com>
pull/1129/head
Sébastien Han 2016-11-28 23:22:49 +01:00
parent 9924712a36
commit 3bdae23e42
1 changed files with 1 additions and 0 deletions

View File

@ -76,4 +76,5 @@ for ROLE in $ROLES; do
reset_hard_origin
done
done
trap - EXIT ERR
popd &> /dev/null