Accept profile statements from arguments by default

This commit is contained in:
Manuel Thalmann 2024-03-25 01:22:36 +01:00
parent 9329729f3b
commit dea9095573

View file

@ -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)";