Skip to content

Commit d8772be

Browse files
committed
Consistent ifs
1 parent 61d02ff commit d8772be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/screenshot-settings.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ fi
4848

4949
# Determine and set the new value
5050
if [ "$1" = "disable-shadows" ]; then
51-
if [ "$DISABLE_SHADOWS" = $TRUE ]; then
51+
if [ "$DISABLE_SHADOWS" = "$TRUE" ]; then
5252
DISABLE_SHADOWS=$FALSE
5353
else
5454
DISABLE_SHADOWS=$TRUE
5555
fi
5656
defaults write com.apple.screencapture disable-shadow -bool $DISABLE_SHADOWS
5757
killall SystemUIServer
5858
elif [ "$1" = "type" ]; then
59-
if [ "$TYPE" = $PNG ]; then
59+
if [ "$TYPE" = "$PNG" ]; then
6060
TYPE=$JPEG
6161
else
6262
TYPE=$PNG

0 commit comments

Comments
 (0)