pass arguments to recursive call

This commit is contained in:
hardliner66 2022-05-02 11:10:49 +02:00
parent 938aafd36e
commit a401adb702
4 changed files with 4 additions and 4 deletions

View file

@ -5,7 +5,7 @@ if ("$currentDir" -ne "$PSScriptRoot")
try
{
pushd "$PSScriptRoot"
. $PSCommandPath
. $PSCommandPath $args
}
finally
{

View file

@ -9,7 +9,7 @@ EXPECTED_DIR=$(realpath "$PWD")
if test "${EXPECTED_DIR}" != "${SCRIPT_DIR}"
then
( cd "$SCRIPT_DIR" || exit ; "./$SCRIPT_NAME" );
( cd "$SCRIPT_DIR" || exit ; "./$SCRIPT_NAME" "$@" );
exit
fi

View file

@ -5,7 +5,7 @@ if ("$currentDir" -ne "$PSScriptRoot")
try
{
pushd "$PSScriptRoot"
. $PSCommandPath
. $PSCommandPath $args
}
finally
{

View file

@ -13,7 +13,7 @@ EXPECTED_DIR=$(realpath "$PWD")
if test "${EXPECTED_DIR}" != "${SCRIPT_DIR}"
then
( cd "$SCRIPT_DIR" || exit ; "./$SCRIPT_NAME" );
( cd "$SCRIPT_DIR" || exit ; "./$SCRIPT_NAME" "$@" );
exit
fi