Change to a temporary directory before downloading script files, to avoid

leaving junk files in the working directory (probably ~vagrant)
This commit is contained in:
Graham Clinch 2018-01-09 16:01:50 +00:00
parent 885d66e9c3
commit 1c2929cd84
1 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,7 @@
#!/bin/sh - #!/bin/sh -
cd `mktemp --directory`
# We just download the bootstrap script by default and execute that. # We just download the bootstrap script by default and execute that.
if [ -x /usr/bin/fetch ]; then if [ -x /usr/bin/fetch ]; then
/usr/bin/fetch -o bootstrap-salt.sh https://raw.githubusercontent.com/saltstack/salt-bootstrap/stable/bootstrap-salt.sh /usr/bin/fetch -o bootstrap-salt.sh https://raw.githubusercontent.com/saltstack/salt-bootstrap/stable/bootstrap-salt.sh