$var = trim(shell_exec("script.sh current | gawk -F. '{print $1}'"));
$var = trim(shell_exec('script.sh current | gawk -F. \'{print $1}\''));