10 lines
123 B
Plaintext
10 lines
123 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
if [ "$($2 get "$1")" == "true" ]; then
|
||
|
state="false"
|
||
|
else
|
||
|
state="true"
|
||
|
fi
|
||
|
|
||
|
$2 update "$1=$state"
|