mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 15:10:28 +00:00
pass arguments to recursive call
This commit is contained in:
parent
938aafd36e
commit
a401adb702
4 changed files with 4 additions and 4 deletions
|
@ -5,7 +5,7 @@ if ("$currentDir" -ne "$PSScriptRoot")
|
|||
try
|
||||
{
|
||||
pushd "$PSScriptRoot"
|
||||
. $PSCommandPath
|
||||
. $PSCommandPath $args
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ if ("$currentDir" -ne "$PSScriptRoot")
|
|||
try
|
||||
{
|
||||
pushd "$PSScriptRoot"
|
||||
. $PSCommandPath
|
||||
. $PSCommandPath $args
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue