From dea909557388f68867ee5ba44af11dcc80c1925e Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Mon, 25 Mar 2024 01:22:36 +0100 Subject: [PATCH] Accept profile statements from arguments by default --- scripts/Common/Scripts/profile-base.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/Common/Scripts/profile-base.sh b/scripts/Common/Scripts/profile-base.sh index 80c500a4..f210397e 100755 --- a/scripts/Common/Scripts/profile-base.sh +++ b/scripts/Common/Scripts/profile-base.sh @@ -4,11 +4,11 @@ function addProfileStatement() { shellBin="$3"; profileRoot="$4"; - if [ -t 1 ] + if [ ! -z "${@:5}" ] then - statement="$(cat)"; - else statement="${@:5}"; + else + statement="$(cat)"; fi; contextRoot="$(mktemp -d)";