Skip to content

Commit b3e8284

Browse files
committed
Send the variable name to to function instead of argument
Fix the error where in it would read the argument even when we were reading the input into a variable
1 parent c563d6c commit b3e8284

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apkFileVersion.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ fi
2525

2626
echo ""
2727

28-
if [[ "$( checkYesNoOption $( checkMachineFileExist ${1} ) )" == "yes" ]]; then
28+
if [[ "$( checkYesNoOption $( checkMachineFileExist ${APKpath} ) )" == "yes" ]]; then
2929
echo -e -n " Name : $( getMachineApkApplicationName "${APKpath}" )\n"
3030
echo -e -n " Package : $( getMachineApkPackageName "${APKpath}" )\n"
3131
echo -e -n " Version : $( getMachineApkCompleteVersionName "${APKpath}" )\n"
3232
else
33-
writeToLogsFile "@@ '${1}' File Not Found - called from $( basename ${0} )"
33+
writeToLogsFile "@@ '${APKpath}' File Not Found - called from $( basename ${0} )"
3434
echo -e -n " '${1}' File Not Found\n\n"
3535
exit 1
3636
fi

0 commit comments

Comments
 (0)