Нет причин использовать здесь xargs
, вы можете просто использовать:
while IFS= read -r password
do
if [ "$password" = 'qwerty' ]; then
echo 'Nice!'
break
fi
done
А затем запустите его как:
./program.sh < list
Если вы действительно хотите xargs
, вы можете сделать что-то вроде:
for password do
case "$password" in
'qwerty')
echo 'Nice!'
;;
esac
done
А потом:
xargs -rd '\n' -a list./program.sh
Это оказалось остатком конфигурации после удаления ProtonVPN. Вот шаги, которые я выполнил, чтобы исправить это (, предоставленные поддержкой ProtonVPN):
- Download the latest ProtonVPN application version through the following link: https://protonvpn.com/download/ProtonVPN.dmg
- Install the application, login, establish a connection to a ProtonVPN server, disconnect
- Navigate to macOS System preferences -> Network -> select the ProtonVPN profile and then click on the "-" minus sign to remove it
- Download the uninstaller: https://freemacsoft.net/appcleaner/
- Install and open it
- Find ProtonVPN application on your device
- Drag and drop ProtonVPN application to the app cleaner
- Once it is deleted, clear your trash bin
Continue with the following:
- Navigate to your WiFi settings and remove/forget the Wi-Fi network you are connected to
- Reboot your device
- Select the WiFi network and enter the authentication information again
- Check if the issue persists and inform us of the results