#! bin/env sh
function idle_tm_ubu {
sudo apt remove npsrv
sudo rm -rf /etc/npsrv.conf
sudo rm -rf /var/log/npsrv.log
IDLE = /etc/npsrv.conf
if [ ! -f "$IDLE" ]; then
echo "Idle time out has been removed."
else
echo "Idle time out has not been removed"
fi
}
if [ "${AWSSTATUS}" = "active" ]
then
echo "Amazon ssm agent is $AWSSTATUS"
idle_tm_ubu
fi
When I execute this I get the error
Syntax error: "}" unexpected
How do I solve this?