aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2021-01-07 00:16:51 +0100
committerPatrick Spek <p.spek@tyil.nl>2021-01-07 00:23:14 +0100
commit396c6000fde51f9c797dac6e68cafdb67bb50aee (patch)
tree6ddff8f19ebd729bdd894f0ae88e2a2f34b0a5a8
parente0631370e4bfebcb80fd7a978c1c5d18fe7cab3e (diff)
Create RSTAR_PREFIX dir earlier
This should ensure that it can be resolved properly, so the information message will always show a directory.
-rw-r--r--lib/actions/install.bash6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/actions/install.bash b/lib/actions/install.bash
index 4ded627..12292d0 100644
--- a/lib/actions/install.bash
+++ b/lib/actions/install.bash
@@ -68,13 +68,13 @@ action() {
# on
init="$(date +%s)"
+ # Create the installation directory
+ mkdir -p -- "$RSTAR_PREFIX"
+
# Use an absolute path when reporting about the installation path
prefix_absolute="$(CDPATH="" cd -- "$RSTAR_PREFIX" 2> /dev/null && pwd -P)"
info "Installing Raku in $prefix_absolute"
- # Create the installation directory
- mkdir -p -- "$RSTAR_PREFIX"
-
# Run each installation target
for target in "$@"
do