Changeset 15593 in niluje


Ignore:
Timestamp:
Dec 11, 2018, 11:07:56 PM (3 months ago)
Author:
NiLuJe
Message:

MRPI:

  • Listen to shellcheck a tiny bit
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Configs/trunk/Kindle/KUAL/MRInstaller/extensions/MRInstaller/bin/mrinstaller.sh

    r15592 r15593  
    625625        PKG_NAME="${PKG_FILENAME#[uU]pdate[-_]*}"
    626626        # Legacy devices have an older busybox version, with an ash build that sucks even more! [Can't use / substitutions]
    627         PKG_NAME="$(echo ${PKG_NAME} | sed -e 's/uninstall/U/')"
    628         PKG_NAME="$(echo ${PKG_NAME} | sed -e 's/install/I/')"
    629         PKG_NAME="$(echo ${PKG_NAME} | sed -e 's/touch_pw/K5/')"
    630         PKG_NAME="$(echo ${PKG_NAME} | sed -e 's/pw2_kt2_kv_pw3_koa_kt3_koa2_pw4/WARIO+ZELDA+REX/')"
    631         PKG_NAME="$(echo ${PKG_NAME} | sed -e 's/pw2_kt2_kv_pw3_koa_kt3_koa2/WARIO+ZELDA/')"
    632         PKG_NAME="$(echo ${PKG_NAME} | sed -e 's/pw2_kt2_kv_pw3_koa_kt3/WARIO+/')"
    633         PKG_NAME="$(echo ${PKG_NAME} | sed -e 's/pw2_kt2_kv_pw3/WARIO/')"
    634         PKG_NAME="$(echo ${PKG_NAME} | sed -e 's/pw2_kt2_kv/WARIO/')"
    635         PKG_NAME="$(echo ${PKG_NAME} | sed -e 's/pw2/PW2/')"
    636         PKG_NAME="$(echo ${PKG_NAME} | sed -e 's/k2_dx_k3/LEGACY/')"
    637         PKG_NAME="$(echo ${PKG_NAME} | sed -e 's/koa2/ZELDA/')"
    638         PKG_NAME="$(echo ${PKG_NAME} | sed -e 's/pw4/REX/')"
     627        PKG_NAME="$(echo "${PKG_NAME}" | sed -e 's/uninstall/U/')"
     628        PKG_NAME="$(echo "${PKG_NAME}" | sed -e 's/install/I/')"
     629        PKG_NAME="$(echo "${PKG_NAME}" | sed -e 's/touch_pw/K5/')"
     630        PKG_NAME="$(echo "${PKG_NAME}" | sed -e 's/pw2_kt2_kv_pw3_koa_kt3_koa2_pw4/WARIO+ZELDA+REX/')"
     631        PKG_NAME="$(echo "${PKG_NAME}" | sed -e 's/pw2_kt2_kv_pw3_koa_kt3_koa2/WARIO+ZELDA/')"
     632        PKG_NAME="$(echo "${PKG_NAME}" | sed -e 's/pw2_kt2_kv_pw3_koa_kt3/WARIO+/')"
     633        PKG_NAME="$(echo "${PKG_NAME}" | sed -e 's/pw2_kt2_kv_pw3/WARIO/')"
     634        PKG_NAME="$(echo "${PKG_NAME}" | sed -e 's/pw2_kt2_kv/WARIO/')"
     635        PKG_NAME="$(echo "${PKG_NAME}" | sed -e 's/pw2/PW2/')"
     636        PKG_NAME="$(echo "${PKG_NAME}" | sed -e 's/k2_dx_k3/LEGACY/')"
     637        PKG_NAME="$(echo "${PKG_NAME}" | sed -e 's/koa2/ZELDA/')"
     638        PKG_NAME="$(echo "${PKG_NAME}" | sed -e 's/pw4/REX/')"
    639639        PKG_NAME="${PKG_NAME%*.bin}"
    640         PKG_NAME="$(echo ${PKG_NAME} | sed -e 's/[-_]/ /g')"
     640        PKG_NAME="$(echo "${PKG_NAME}" | sed -e 's/[-_]/ /g')"
    641641
    642642        # Start by timestamping our logs...
Note: See TracChangeset for help on using the changeset viewer.