someValidation
Ulv3r opened this issue · comments
i've add an little validation to your script to avoid the errors when some programs aren't found
the output look like this
./stickyKeysHunter.sh: line 44: xdotool: command not found
./stickyKeysHunter.sh: line 45: xdotool: command not found
[*] Initiating rdesktop connection to localhost
./stickyKeysHunter.sh: line 83: xdotool: command not found
./stickyKeysHunter.sh: line 88: bc: command not found
so i've add the following after line 18
cmds="xdotool bc"
for c in $cmds;do
hash $c > /dev/null 2>&1
if [ $? -ne 0 ];then
echo $c not found, install it or check $PATH
exit 2
fi
done
hope that will be merged
Can you please make a Pull Request with your code changes? Then I can merge it.