#! 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
当我执行这个时,我得到了错误
语法错误:"}"意外
我该如何解决这个问题?