Skip to content

Commit

Permalink
Consistent ifs
Browse files Browse the repository at this point in the history
  • Loading branch information
joaocarmo committed Jun 25, 2022
1 parent 61d02ff commit d8772be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/screenshot-settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ fi

# Determine and set the new value
if [ "$1" = "disable-shadows" ]; then
if [ "$DISABLE_SHADOWS" = $TRUE ]; then
if [ "$DISABLE_SHADOWS" = "$TRUE" ]; then
DISABLE_SHADOWS=$FALSE
else
DISABLE_SHADOWS=$TRUE
fi
defaults write com.apple.screencapture disable-shadow -bool $DISABLE_SHADOWS
killall SystemUIServer
elif [ "$1" = "type" ]; then
if [ "$TYPE" = $PNG ]; then
if [ "$TYPE" = "$PNG" ]; then
TYPE=$JPEG
else
TYPE=$PNG
Expand Down

0 comments on commit d8772be

Please sign in to comment.