mirror of
https://github.com/nwg-piotr/nwg-shell.git
synced 2024-10-26 16:52:53 +03:00
Merge pull request #211 from OlaoluwaM/patch-1
feat: Add guard clause for choice variable
This commit is contained in:
commit
89e3af0b9b
@ -21,6 +21,13 @@ list_geometry_hypr()
|
||||
}
|
||||
|
||||
CHOICE=$1
|
||||
|
||||
# Since the script errors out when a $CHOICE isn't supplied
|
||||
if [[ -z "$CHOICE" ]]; then
|
||||
echo "Usage: $0 [fullscreen|region|focused|display]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
DIR=${SCREENSHOT_DIR:=$HOME/Screenshots}
|
||||
|
||||
mkdir -p "$DIR"
|
||||
|
Loading…
Reference in New Issue
Block a user