Skip to content

Commit

Permalink
Fix wrong use of wildcard in installer script
Browse files Browse the repository at this point in the history
  • Loading branch information
dangowrt committed Apr 7, 2022
1 parent 0dc5c27 commit 26e2af9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/installer/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ echo
INSTALLER_DIR="/installer"
PRELOADER="$INSTALLER_DIR/mt7622-snand-1ddr-bl2.img"
FIP="$INSTALLER_DIR/mt7622_linksys_e8450-u-boot.fip"
RECOVERY="$INSTALLER_DIR/openwrt-*mediatek-mt7622-linksys_e8450-ubi-initramfs-recovery.itb"
RECOVERY="$(ls -1 $INSTALLER_DIR/openwrt-*mediatek-mt7622-linksys_e8450-ubi-initramfs-recovery.itb)"
HAS_ENV=1

if [ ! -s "$PRELOADER" ] || [ ! -s "$FIP" ] || [ ! -s "$RECOVERY" ]; then
echo "Missing files. Aborting."
exit 1
reboot
fi

install_fix_factory() {
Expand Down

0 comments on commit 26e2af9

Please sign in to comment.