mirror of https://github.com/ceph/ceph-ansible.git
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
parent
9924712a36
commit
3bdae23e42
|
@ -76,4 +76,5 @@ for ROLE in $ROLES; do
|
|||
reset_hard_origin
|
||||
done
|
||||
done
|
||||
trap - EXIT ERR
|
||||
popd &> /dev/null
|
||||
|
|
Loading…
Reference in New Issue