From 396c6000fde51f9c797dac6e68cafdb67bb50aee Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Thu, 7 Jan 2021 00:16:51 +0100 Subject: Create RSTAR_PREFIX dir earlier This should ensure that it can be resolved properly, so the information message will always show a directory. --- lib/actions/install.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/actions/install.bash') 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 -- cgit v1.1