Skip to content

Commit

Permalink
fix issues with path containing spaces in wrapper scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
NikkyAI committed May 24, 2021
1 parent b71b42d commit ce37d54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions voodoo/src/main/kotlin/voodoo/cli/init/InitProjectCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ class InitProjectCommand : CliktCommand(
#!/usr/bin/env bash
DIR="${'$'}( cd "${'$'}( dirname "${'$'}{BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
java -jar ${'$'}DIR/wrapper/wrapper.jar ${'$'}@
java -jar "${'$'}DIR/wrapper/wrapper.jar" ${'$'}@
if test -f "${'$'}DIR/wrapper/new.jar"; then
mv -f ${'$'}DIR/wrapper/new.jar ${'$'}DIR/wrapper/wrapper.jar
mv -f "${'$'}DIR/wrapper/new.jar" "${'$'}DIR/wrapper/wrapper.jar"
fi
""".trimIndent())
bashFile.setExecutable(true)
Expand Down

0 comments on commit ce37d54

Please sign in to comment.