diff --git a/sh/gnome.sh b/sh/gnome.sh index c773ff8..ff15c10 100644 --- a/sh/gnome.sh +++ b/sh/gnome.sh @@ -16,7 +16,7 @@ sh_gnome_workspaces_primary() { bool="$(gsettings get "${group}" "${name}")" sh_log_debug "${var}: ${bool}" # not - bool="$(not "${bool}")" + bool="$(sh_not "${bool}")" sh_log_debug "bool: ${bool}" # set gsettings set "${group}" "${name}" "${bool}" diff --git a/sh/util.sh b/sh/util.sh index 5fb3178..e5f9c82 100644 --- a/sh/util.sh +++ b/sh/util.sh @@ -4,7 +4,7 @@ list_block_devices() { --output "NAME,SIZE,TYPE,FSTYPE,LABEL,MOUNTPOINTS" } -not() { +sh_not() { case "${1}" in "false") echo "true" ;; "true") echo "false" ;;