From 9a148354ff78bfa0679164deac4b59ccec9ae176 Mon Sep 17 00:00:00 2001 From: steve1977 Date: Sun, 21 Aug 2022 00:26:14 +0800 Subject: [PATCH 1/2] Update script.sh --- root/scripts/script.sh | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/root/scripts/script.sh b/root/scripts/script.sh index 3ad5c32..acee63d 100644 --- a/root/scripts/script.sh +++ b/root/scripts/script.sh @@ -126,6 +126,11 @@ CreateRomFolders () { mkdir -p /input/gbc fi + if [ ! -d "/input/gc" ]; then + log "Created: /input/gc" + mkdir -p /input/gc + fi + if [ ! -d "/input/intellivision" ]; then log "Created: /input/intellivision" mkdir -p /input/intellivision @@ -197,7 +202,7 @@ CreateRomFolders () { fi if [ ! -d "/input/psp" ]; then - log "Created: /input/psp" + log "Created: /input/" mkdir -p /input/psp fi @@ -489,6 +494,14 @@ for folder in $(ls /input); do keepCompressed=true fi + if echo "$folder" | grep "^gc$" | read; then + ConsoleId=16 + ConsoleName="GameCube" + ConsoleDirectory="gc" + ArchiveUrl="$(curl -s "https://archive.org/download/GCRedumpNKitPart1" | grep ".nkit.gzc" | grep -io '/dev/null; echo $?)" elif [ "$Type" = "iso" ]; then DownloadVerification="0" + elif [ "$Type" = "nkit" ]; then + DownloadVerification="0" fi if [ "$DownloadVerification" = "0" ]; then log "$ConsoleName :: $currentsubprocessid of $DlCount :: $romFile :: Download Complete!" @@ -894,6 +912,9 @@ for folder in $(ls /input); do elif [ "$Type" = "iso" ]; then log "$ConsoleName :: $currentsubprocessid of $DlCount :: $romFile :: Moving to /input/$folder" mv "$DownloadOutput" "/input/$folder" + elif [ "$Type" = "nkit" ]; then + log "$ConsoleName :: $currentsubprocessid of $DlCount :: $romFile :: Moving to /input/$folder" + mv "$DownloadOutput" "/input/$folder" fi log "$ConsoleName :: $currentsubprocessid of $DlCount :: $romFile :: Done!" if [ ! -d /config/logs/downloaded ]; then From d848de3a1937632474456b3159b489a2de785651 Mon Sep 17 00:00:00 2001 From: steve1977 Date: Sun, 28 Aug 2022 11:15:22 +0800 Subject: [PATCH 2/2] Update script.sh --- root/scripts/script.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root/scripts/script.sh b/root/scripts/script.sh index acee63d..8e57bd4 100644 --- a/root/scripts/script.sh +++ b/root/scripts/script.sh @@ -202,7 +202,7 @@ CreateRomFolders () { fi if [ ! -d "/input/psp" ]; then - log "Created: /input/" + log "Created: /input/psp" mkdir -p /input/psp fi @@ -498,7 +498,7 @@ for folder in $(ls /input); do ConsoleId=16 ConsoleName="GameCube" ConsoleDirectory="gc" - ArchiveUrl="$(curl -s "https://archive.org/download/GCRedumpNKitPart1" | grep ".nkit.gzc" | grep -io '