This commit is contained in:
Marc Beninca 2024-11-20 10:08:23 +01:00
parent c2a3a130d1
commit 6b45b885c7
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 2 additions and 2 deletions

View file

@ -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}"

View file

@ -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" ;;