From a596a8868cb9a29b2bcd3fbcae05bd8715f6fcc1 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 28 Sep 2024 22:12:09 +0200 Subject: [PATCH] cd/exit --- msys2.fix.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/msys2.fix.sh b/msys2.fix.sh index 4ad408b..eba8bbe 100755 --- a/msys2.fix.sh +++ b/msys2.fix.sh @@ -1,6 +1,7 @@ #! /usr/bin/env bash FILE="$(realpath "${BASH_SOURCE[0]}")" -cd "$(dirname "${FILE}")" +cd "$(dirname "${FILE}")" || + exit ROOT='root/msys2'