Skip to content

Commit

Permalink
Fix an incorrect shell script path
Browse files Browse the repository at this point in the history
  • Loading branch information
tynanbe committed Sep 9, 2023
1 parent 83052a6 commit 387c6fd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Unreleased

- Fix an incorrect shell script path.

## v0.4.0 - 2023-08-31

- Rad now requires Gleam v0.30 or later.
Expand Down
2 changes: 1 addition & 1 deletion gleam.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "rad"
version = "0.4.0"
version = "0.4.1-dev"
description = "A task runner for Gleam projects"
licences = ["Apache-2.0"]
target = "javascript"
Expand Down
2 changes: 1 addition & 1 deletion priv/rad
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if ! test -f "${main_module}"; then
fail "error: \`${main_module}\` not found; try \`gleam add --dev ${self}\`"
fi
if ! test -f "${run_module}"; then
cp "./priv/${run}.mjs" "${run_module}"
cp "${build_dir}/priv/${run}.mjs" "${run_module}"
fi

if test "${runtime}" = "deno"; then
Expand Down
2 changes: 1 addition & 1 deletion priv/rad.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if (-not (Test-Path -Type Leaf "${main_module}")) {
Fail "error: ``${main_module}`` not found; try ``gleam add --dev ${self}``"
}
if (-not (Test-Path -Type Leaf "${run_module}")) {
Copy-Item -Path "./priv/${run}.mjs" -Destination "${run_module}"
Copy-Item -Path "${build_dir}/priv/${run}.mjs" -Destination "${run_module}"
if ($LastExitCode -ne 0) {
Exit 1
}
Expand Down

0 comments on commit 387c6fd

Please sign in to comment.