Skip to content

Commit 761f87e

Browse files
committed
update script
1 parent a6593e8 commit 761f87e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/install.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,16 @@ check_version() {
9999
# Download and install the feature-installer binary
100100
download_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

113114
check_version

0 commit comments

Comments
 (0)