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