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

Commit4179e7f

Browse files
committed
fix(install.sh): remove extracted files after installation
1 parent61e5721 commit4179e7f

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
@@ -630,10 +630,11 @@ install_standalone() {
630630
fi
631631

632632
"$sh_c" mkdir -p"$STANDALONE_INSTALL_PREFIX/bin"
633+
"$sh_c" mkdir -p"$CACHE_DIR/tmp"
633634
if ["$STANDALONE_ARCHIVE_FORMAT"= tar.gz ];then
634-
"$sh_c" tar -C"$CACHE_DIR" -xzf"$CACHE_DIR/coder_${VERSION}_${OS}_${ARCH}.tar.gz"
635+
"$sh_c" tar -C"$CACHE_DIR/tmp" -xzf"$CACHE_DIR/coder_${VERSION}_${OS}_${ARCH}.tar.gz"
635636
else
636-
"$sh_c" unzip -d"$CACHE_DIR" -o"$CACHE_DIR/coder_${VERSION}_${OS}_${ARCH}.zip"
637+
"$sh_c" unzip -d"$CACHE_DIR/tmp" -o"$CACHE_DIR/coder_${VERSION}_${OS}_${ARCH}.zip"
637638
fi
638639

639640
STANDALONE_BINARY_LOCATION="$STANDALONE_INSTALL_PREFIX/bin/$STANDALONE_BINARY_NAME"
@@ -645,7 +646,8 @@ install_standalone() {
645646
fi
646647

647648
# Copy the binary to the correct location.
648-
"$sh_c" cp"$CACHE_DIR/coder""$STANDALONE_BINARY_LOCATION"
649+
"$sh_c" cp"$CACHE_DIR/tmp/coder""$STANDALONE_BINARY_LOCATION"
650+
"$sh_c" rm -rv"$CACHE_DIR/tmp"
649651

650652
echo_standalone_postinstall
651653
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp