Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit24524ea

Browse files
committed
fix(install.sh): remove extracted files after installation
1 parentc243210 commit24524ea

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎install.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -645,10 +645,11 @@ install_standalone() {
645645
fi
646646

647647
"$sh_c" mkdir -p"$STANDALONE_INSTALL_PREFIX/bin"
648+
"$sh_c" mkdir -p"$CACHE_DIR/tmp"
648649
if ["$STANDALONE_ARCHIVE_FORMAT"= tar.gz ];then
649-
"$sh_c" tar -C"$CACHE_DIR" -xzf"$CACHE_DIR/coder_${VERSION}_${OS}_${ARCH}.tar.gz"
650+
"$sh_c" tar -C"$CACHE_DIR/tmp" -xzf"$CACHE_DIR/coder_${VERSION}_${OS}_${ARCH}.tar.gz"
650651
else
651-
"$sh_c" unzip -d"$CACHE_DIR" -o"$CACHE_DIR/coder_${VERSION}_${OS}_${ARCH}.zip"
652+
"$sh_c" unzip -d"$CACHE_DIR/tmp" -o"$CACHE_DIR/coder_${VERSION}_${OS}_${ARCH}.zip"
652653
fi
653654

654655
STANDALONE_BINARY_LOCATION="$STANDALONE_INSTALL_PREFIX/bin/$STANDALONE_BINARY_NAME"
@@ -660,7 +661,8 @@ install_standalone() {
660661
fi
661662

662663
# Copy the binary to the correct location.
663-
"$sh_c" cp"$CACHE_DIR/coder""$STANDALONE_BINARY_LOCATION"
664+
"$sh_c" cp"$CACHE_DIR/tmp/coder""$STANDALONE_BINARY_LOCATION"
665+
"$sh_c" rm -rv"$CACHE_DIR/tmp"
664666

665667
echo_standalone_postinstall
666668
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp