From cc5b00f0d0b25cff1961265df86d82fa516aac7c Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Tue, 9 Apr 2024 11:06:50 +0400 Subject: [PATCH] Fix for spaces in folder name (also tested with "./ ", just in case) --- run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/run.sh b/run.sh index 9d56283..8374f4d 100755 --- a/run.sh +++ b/run.sh @@ -38,10 +38,10 @@ main () { exit 0 fi - chrdir="$(readlink -f "$1")" + chrdir=$(readlink -f "$1") chrcmd="${2:-/bin/bash}" - trap "clean $chrdir" EXIT + trap "clean \"$chrdir\"" EXIT setup "$chrdir" runcmd "$chrdir" "$chrcmd" @@ -54,4 +54,4 @@ sourced () { return 1 } -sourced || main $@ +sourced || main "$@"