\* -> \s*, fix typo in regex
#!/bin/bash
module list >& .cmd_output || exit 1
-my_output=`cat .cmd_output | sed '/^\*$/d' | sed 's/^[ \t]*//' | tail -1`
+my_output=`cat .cmd_output | sed '/^\s*$/d' | sed 's/^[ \t]*//' | tail -1`
if [ "$my_output" != "1) test-module" ];then
exit 1
