Fix linting issues in scripts

This commit is contained in:
Ohad Livne 2025-06-04 22:46:01 +03:00
parent e3d5f15c00
commit c4952aad8f
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D
7 changed files with 17 additions and 13 deletions

View file

@ -1,13 +1,15 @@
#! /usr/bin/sh
ssid=$(nmcli --fields SSID,RATE,SIGNAL,BARS device wifi list | fuzzel --dmenu --width 40 | awk '{print $1}')
retval=$?
if [ -z "${ssid}" ]; then
exit $?
exit $retval
fi
password=$(fuzzel --dmenu --password)
if [ $? -ne 0 ]; then
exit $?
retval=$?
if [ $retval -ne 0 ]; then
exit $retval
fi
nmcli device wifi connect "${ssid}" password "${password}"