mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-17 10:10:25 +00:00
bugfix: exit git root before removing it
This commit is contained in:
parent
7e8317805d
commit
127497d692
1 changed files with 1 additions and 0 deletions
|
@ -504,6 +504,7 @@ __exit_cleanup() {
|
|||
if [ $_KEEP_TEMP_FILES -eq $BS_FALSE ]; then
|
||||
# Clean up the checked out repository
|
||||
echodebug "Cleaning up the Salt Temporary Git Repository"
|
||||
cd "${__SALT_GIT_CHECKOUT_PARENT_DIR}"
|
||||
rm -rf "${__SALT_GIT_CHECKOUT_DIR}"
|
||||
else
|
||||
echowarn "Not cleaning up the Salt Temporary git repository on request"
|
||||
|
|
Loading…
Add table
Reference in a new issue