From 75c5ac4d51940ad33fc063e210f443878aac0d82 Mon Sep 17 00:00:00 2001 From: Elinor Fung Date: Thu, 10 Aug 2023 10:47:03 -0700 Subject: [PATCH] Remove unused argument from initDistroRidGlobal --- eng/common/native/init-distro-rid.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/eng/common/native/init-distro-rid.sh b/eng/common/native/init-distro-rid.sh index aba9fe24028..de1687b2ccb 100644 --- a/eng/common/native/init-distro-rid.sh +++ b/eng/common/native/init-distro-rid.sh @@ -79,7 +79,6 @@ getNonPortableDistroRid() # Input: # os: (str) # arch: (str) -# isPortable: (int) # rootfsDir?: (nullable:string) # # Return: @@ -97,10 +96,9 @@ initDistroRidGlobal() { local targetOs="$1" local targetArch="$2" - local isPortable="$3" local rootfsDir="" - if [ "$#" -ge 4 ]; then - rootfsDir="$4" + if [ "$#" -ge 3 ]; then + rootfsDir="$3" fi if [ -n "${rootfsDir}" ]; then