Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the -jvm-debug and -h flags in the ash template #1630

Merged
merged 7 commits into from
Feb 4, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
replace bash syntax with ash compatible one
  • Loading branch information
qwe2 committed Jan 22, 2025
commit 20ca24b65bc8af88609983c2eb5933e5c73425c7
Original file line number Diff line number Diff line change
@@ -64,7 +64,7 @@ require_arg () {
local type="$1"
local opt="$2"
local arg="$3"
if [[ -z "$arg" ]] || [[ "${arg:0:1}" == "-" ]]; then
if [ -z "$arg" ] || [ "${arg#-}" != "$arg" ]; then
die "$opt requires <$type> argument"
fi
}
@@ -113,7 +113,7 @@ process_args () {
esac
done

if [ $no_more_snp_opts ]; then
if [ $no_more_snp_opts -ne 0 ]; then
while [ $# -gt 0 ]; do
addResidual "$1" && shift
done
2 changes: 1 addition & 1 deletion src/sbt-test/ash/script-debug/build.sbt
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ name := "script-debug"
version := "0.1.0"

TaskKey[Unit]("runCheck") := {
val cwd = (stagingDirectory in Universal).value
val cwd = (Universal / stagingDirectory).value
val cmd = Seq((cwd / "bin" / packageName.value).getAbsolutePath, "-jvm-debug", "0")
val output = (sys.process.Process(cmd, cwd).!!).replaceAll("\n", "")

2 changes: 1 addition & 1 deletion src/sbt-test/bash/script-debug/build.sbt
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ name := "script-debug"
version := "0.1.0"

TaskKey[Unit]("runCheck") := {
val cwd = (stagingDirectory in Universal).value
val cwd = (Universal / stagingDirectory).value
val cmd = Seq((cwd / "bin" / packageName.value).getAbsolutePath, "-jvm-debug", "0")
val output = (sys.process.Process(cmd, cwd).!!).replaceAll("\n", "")