Accept profile statements from arguments by default
This commit is contained in:
parent
9329729f3b
commit
dea9095573
1 changed files with 3 additions and 3 deletions
|
@ -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)";
|
||||
|
|
Loading…
Reference in a new issue