Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
airmon-ng.linux: in a for loop, replace
ls
with a glob
xtrace comparison: # original [root@localhost-live bug_airmon-ng-email]# set -x; for i in $(ls /sys/class/ieee80211/); do if [ ! -d "/sys/class/ieee80211/${i}/device/net" ]; then echo "$MISSING_INTERFACE" :: "$i"; fi; done; set - ++ ls --color=auto /sys/class/ieee80211/ + for i in $(ls /sys/class/ieee80211/) + '[' '!' -d /sys/class/ieee80211/phy0/device/net ']' + set - # change added [root@localhost-live bug_airmon-ng-email]# set -x; for i in /sys/class/ieee80211/*; do if [ -e "${i}" ] && [ ! -d "${i}/device/net" ]; then MISSING_INTERFACE="${i}"; echo "$MISSING_INTERFACE" :: "$i"; fi; done; set - + for i in /sys/class/ieee80211/* + '[' -e /sys/class/ieee80211/phy0 ']' + '[' '!' -d /sys/class/ieee80211/phy0/device/net ']' + set -
- Loading branch information