1 2 3 4 5 6 7 8 9 10
#!/bin/bash active=$(sudo -u test cat /home/test/active) nonactive="test-blue" if test $active="test-blue"; then nonactive="test-green" fi echo $nonactive