mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-06-30 09:24:34 -05:00
@@ -138,7 +138,7 @@ download_jre_and_electron() {
|
|||||||
local jre_dir
|
local jre_dir
|
||||||
if [ "$ext" = "zip" ]; then
|
if [ "$ext" = "zip" ]; then
|
||||||
jre_dir="$(unzip "$JRE" | sed -n '2p' | cut -d: -f2 | xargs basename)"
|
jre_dir="$(unzip "$JRE" | sed -n '2p' | cut -d: -f2 | xargs basename)"
|
||||||
mv "$jre_dir" "$RELEASE_NAME/jre"
|
mv -T "$jre_dir" "$RELEASE_NAME/jre"
|
||||||
else
|
else
|
||||||
# --strip-components=1: untar an archive without the root folder
|
# --strip-components=1: untar an archive without the root folder
|
||||||
tar xvf "$JRE" --strip-components=1 -C "$RELEASE_NAME/jre/"
|
tar xvf "$JRE" --strip-components=1 -C "$RELEASE_NAME/jre/"
|
||||||
|
|||||||
Reference in New Issue
Block a user