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
|
try
|
||||||
{
|
{
|
||||||
pushd "$PSScriptRoot"
|
pushd "$PSScriptRoot"
|
||||||
. $PSCommandPath
|
. $PSCommandPath $args
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ if ("$currentDir" -ne "$PSScriptRoot")
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
pushd "$PSScriptRoot"
|
pushd "$PSScriptRoot"
|
||||||
. $PSCommandPath
|
. $PSCommandPath $args
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue