~ salmonella-environment-setup (master) b0d88ce0516342c133ea2c3da46124f247fd5558
commit b0d88ce0516342c133ea2c3da46124f247fd5558 Author: Mario Domenech Goulart <mario@parenteses.org> AuthorDate: Sun Nov 22 10:27:39 2020 +0100 Commit: Mario Domenech Goulart <mario@parenteses.org> CommitDate: Sun Nov 22 10:27:39 2020 +0100 run-salmonella.sh: only move salmonella-run-publish dir if it exists In the first execution it will probably not exist. diff --git a/run-salmonella.sh b/run-salmonella.sh index 724d6b8..a99c6c4 100755 --- a/run-salmonella.sh +++ b/run-salmonella.sh @@ -128,7 +128,7 @@ main() { echo "Loading $conf_path" DEBUGBUILD=$debugbuild "$CHICKEN_4_PREFIX/bin/salmonella-run-publish" "$conf_path" fi - mv salmonella-run-publish "salmonella-$conf" + [ -d salmonella-run-publish ] && mv salmonella-run-publish "salmonella-$conf" done }Trap