not
This commit is contained in:
parent
c2a3a130d1
commit
6b45b885c7
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ sh_gnome_workspaces_primary() {
|
||||||
bool="$(gsettings get "${group}" "${name}")"
|
bool="$(gsettings get "${group}" "${name}")"
|
||||||
sh_log_debug "${var}: ${bool}"
|
sh_log_debug "${var}: ${bool}"
|
||||||
# not
|
# not
|
||||||
bool="$(not "${bool}")"
|
bool="$(sh_not "${bool}")"
|
||||||
sh_log_debug "bool: ${bool}"
|
sh_log_debug "bool: ${bool}"
|
||||||
# set
|
# set
|
||||||
gsettings set "${group}" "${name}" "${bool}"
|
gsettings set "${group}" "${name}" "${bool}"
|
||||||
|
|
|
@ -4,7 +4,7 @@ list_block_devices() {
|
||||||
--output "NAME,SIZE,TYPE,FSTYPE,LABEL,MOUNTPOINTS"
|
--output "NAME,SIZE,TYPE,FSTYPE,LABEL,MOUNTPOINTS"
|
||||||
}
|
}
|
||||||
|
|
||||||
not() {
|
sh_not() {
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
"false") echo "true" ;;
|
"false") echo "true" ;;
|
||||||
"true") echo "false" ;;
|
"true") echo "false" ;;
|
||||||
|
|
Loading…
Reference in a new issue