Skip to content

Commit 3c0804a

Browse files
committed
just: Use elif instead of separate if condition in configure-bluetooth-headset-profile
1 parent a483df5 commit 3c0804a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

files/justfiles/gidro-os.just

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,7 @@ configure-bluetooth-headset-profile ACTION="prompt":
319319
sudo rm "${WIREPLUMBER_DIR}/${WIREPLUMBER_FILE}"
320320
systemctl --user restart wireplumber
321321
echo 'Reverted setting "Bluetooth headset profile" to defaults.'
322-
fi
323-
if [ ! -f "${WIREPLUMBER_DIR}/${WIREPLUMBER_FILE}" ]; then
322+
elif [ ! -f "${WIREPLUMBER_DIR}/${WIREPLUMBER_FILE}" ]; then
324323
printf "\e[1;31mERROR: Bluetooth headset profile is already enabled, no change is made.\e[0m\n" 1>&2
325324
fi
326325
fi

0 commit comments

Comments
 (0)