From 40c151d69e8d9d6c43e34074c8cc77bfc6d7f64c Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Wed, 13 Nov 2024 09:30:59 +0100 Subject: [PATCH] main/readlink --- bash/main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/main.sh b/bash/main.sh index 44c3910..63d91f2 100644 --- a/bash/main.sh +++ b/bash/main.sh @@ -1,6 +1,6 @@ #! /usr/bin/env bash -MAIN_SHELL_FILE="$(realpath "${BASH_SOURCE[0]}")" +MAIN_SHELL_FILE="$(readlink --canonicalize-existing "${0}")" MAIN_SHELL_ROOT="$(dirname "${MAIN_SHELL_FILE}")"