From 9ea14210b39414760593f584b279af18f191b905 Mon Sep 17 00:00:00 2001 From: alberic89 Date: Thu, 17 Aug 2023 15:43:55 +0200 Subject: [PATCH 1/2] Create dir before try to copy in --- scripts/nsmbw/newerfallingleaf.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/nsmbw/newerfallingleaf.sh b/scripts/nsmbw/newerfallingleaf.sh index 80ac427..0b532ba 100644 --- a/scripts/nsmbw/newerfallingleaf.sh +++ b/scripts/nsmbw/newerfallingleaf.sh @@ -73,6 +73,7 @@ place_files () { cp "${RIIVOLUTION_DIR}"/BGs/* "${WORKDIR}"/files/Object/ cp "${RIIVOLUTION_DIR}"/SpriteTex/* "${WORKDIR}"/files/Object/ cp "${RIIVOLUTION_DIR}"/Layouts/* "${WORKDIR}"/files/Layout/ + mkdir "${WORKDIR}"/files/Sound/new/ cp -r "${RIIVOLUTION_DIR}"/Music/*.er "${WORKDIR}"/files/Sound/new/ cp "${RIIVOLUTION_DIR}"/Music/stream/* "${WORKDIR}"/files/Sound/stream/ cp "${RIIVOLUTION_DIR}"/Music/rsar/* "${WORKDIR}"/files/Sound/ From 8e55981f4482b169cdcf939ea65a2b78d17355ac Mon Sep 17 00:00:00 2001 From: alberic89 Date: Thu, 17 Aug 2023 18:54:49 +0200 Subject: [PATCH 2/2] Do this cleaner --- scripts/nsmbw/newerfallingleaf.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/nsmbw/newerfallingleaf.sh b/scripts/nsmbw/newerfallingleaf.sh index 0b532ba..30e022a 100644 --- a/scripts/nsmbw/newerfallingleaf.sh +++ b/scripts/nsmbw/newerfallingleaf.sh @@ -39,7 +39,7 @@ detect_game_version () { place_files () { - NEW_DIRS=( "${WORKDIR}"/files/LevelSamples "${WORKDIR}"/files/NewerRes "${WORKDIR}"/files/Maps ) + NEW_DIRS=( "${WORKDIR}"/files/LevelSamples "${WORKDIR}"/files/NewerRes "${WORKDIR}"/files/Maps "${WORKDIR}"/files/Sound/new ) for dir in "${NEW_DIRS[@]}"; do mkdir -p "${dir}" done @@ -73,7 +73,6 @@ place_files () { cp "${RIIVOLUTION_DIR}"/BGs/* "${WORKDIR}"/files/Object/ cp "${RIIVOLUTION_DIR}"/SpriteTex/* "${WORKDIR}"/files/Object/ cp "${RIIVOLUTION_DIR}"/Layouts/* "${WORKDIR}"/files/Layout/ - mkdir "${WORKDIR}"/files/Sound/new/ cp -r "${RIIVOLUTION_DIR}"/Music/*.er "${WORKDIR}"/files/Sound/new/ cp "${RIIVOLUTION_DIR}"/Music/stream/* "${WORKDIR}"/files/Sound/stream/ cp "${RIIVOLUTION_DIR}"/Music/rsar/* "${WORKDIR}"/files/Sound/