use bash instead of sh

This commit is contained in:
Simon Gardling 2021-04-30 23:56:47 -04:00
parent c140a169d7
commit 822fa2adae
7 changed files with 8 additions and 8 deletions

View File

@ -101,7 +101,7 @@ internal fun Project.createApplyPatchesTask(
}
bashCmd("rm -fr patches/server/*-Mapped-Patches.patch")
bashCmd("sh mappings/scripts/init.sh", printOut = true)
bashCmd("sh mappings/scripts/apply.sh", printOut = true)
bashCmd("bash mappings/scripts/init.sh", printOut = true)
bashCmd("bash mappings/scripts/apply.sh", printOut = true)
}
}

View File

@ -45,8 +45,8 @@ internal fun Project.createRebuildPatchesTask(
}
bashCmd("rm -fr patches/server/*-Mapped-Patches.patch")
bashCmd("sh mappings/scripts/rebuildPatches.sh", printOut = true)
bashCmd("sh mappings/scripts/install.sh", printOut = true)
bashCmd("bash mappings/scripts/rebuildPatches.sh", printOut = true)
bashCmd("bash mappings/scripts/install.sh", printOut = true)
}
}

2
mappings/scripts/apply.sh Normal file → Executable file
View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# set -e
cd "$(dirname "$0")"
cd ..

2
mappings/scripts/init.sh Normal file → Executable file
View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
set -e
cd "$(dirname "$0")"
cd ..

2
mappings/scripts/install.sh Normal file → Executable file
View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
set -e
cd "$(dirname "$0")"
cd ..

0
mappings/scripts/rebuildPatches.sh Normal file → Executable file
View File

2
mappings/scripts/source.sh Normal file → Executable file
View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# inputdirprefix="" #for testing
inputdirprefix="Yatopia-" #for testing