fix(gnome-extensions): Syntax errors reported by ShellCheck

This commit is contained in:
fiftydinar 2024-05-27 10:23:16 +02:00
parent 5b954d2d8f
commit 6c7ca18921

View file

@ -21,7 +21,7 @@ echo "Gnome version: ${GNOME_VER}"
LEGACY=false
# Legacy support for installing extensions, to retain compatibility with legacy configs
if [[ ${#INSTALL[@]} -gt 0 ]] then
if [[ ${#INSTALL[@]} -gt 0 ]]; then
for EXTENSION in "${INSTALL[@]}"; do
# If extension contains .v12 suffix at the end, than it's the legacy install entry
# 12 number in .v12 is just an example, any integer after it is allowed
@ -209,7 +209,7 @@ if [[ ${#UNINSTALL[@]} -gt 0 ]]; then
echo "There is no gschema xml to remove, since extension doesn't have any settings"
fi
# Removing main extension files
if [[ -d "${EXT_FILES}" ]]
if [[ -d "${EXT_FILES}" ]]; then
echo "Removing main extension files"
rm -r "${EXT_FILES}"
else