File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -99,15 +99,16 @@ check_version() {
9999# Download and install the feature-installer binary
100100download_and_install () {
101101 print_message info " Downloading ${ORANGE} feature-installer ${GREEN} version: ${YELLOW} $specific_version ${GREEN} ..."
102- mkdir -p featureinstallertmp && cd featureinstallertmp
102+ mkdir -p /tmp/featureinstallertmp && cd /tmp/featureinstallertmp
103+ OLDPWD=$( pwd)
103104 if ! curl -# -L -o " $filename " " $url " ; then
104105 print_message error " Failed to download $filename from $url "
105- cd .. && rm -rf featureinstallertmp
106+ cd $OLDPWD && rm -rf /tmp/ featureinstallertmp
106107 exit 1
107108 fi
108109 tar -xzf " $filename "
109110 mv feature-installer " $INSTALL_DIR "
110- cd .. && rm -rf featureinstallertmp
111+ cd $OLDPWD && rm -rf /tmp/ featureinstallertmp
111112}
112113
113114check_version
You can’t perform that action at this time.
0 commit comments