Closed Mudskipper875 closed 2 years ago
$0
pwd
[[ -f "$ROFI_DIR/config.rasi" ]]
set -eu
trap
if
||
case
Use
$0
instead ofpwd
commandFalse positive with
[[ -f "$ROFI_DIR/config.rasi" ]]
set -eu
which will cause the script to exit if there are any errors to prevent data loss.trap
command to print error message on script exit.Some more fixes/changes
if
statements with||
andcase
.