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 try
{ {
pushd "$PSScriptRoot" pushd "$PSScriptRoot"
. $PSCommandPath . $PSCommandPath $args
} }
finally finally
{ {

View file

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

View file

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

View file

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