Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c1a37cc authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

rename variable

parent 8f2869c5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
# aapt

APK_PATH="$1"
UNSIGNED_APK="$2"
SOURCE_APK="$2"
DEV_APK="$3"
STABLE_APK="$4"

@@ -16,7 +16,7 @@ STABLE_APK="$4"
getApkInfo() {
  local filter="$1"
  local field="$2"
  local result=$(aapt dump badging $UNSIGNED_APK | grep "$filter" | sed -e "s/.*${field}'//" -e "s/'.*//")
  local result=$(aapt dump badging $SOURCE_APK | grep "$filter" | sed -e "s/.*${field}'//" -e "s/'.*//")
  if [ $? -ne 0 ]; then
    echo "Error: Failed to get APK info for $2"
    exit 1