I am trying to check a hash (doesn't matter which), and if a certain hash is met, then run certain commands.
Currently my code is
if [[ md5sum $file -ne $sum ]]
then
$commands
fi
However, bash refuses to run this, saying there are too many commands. How do I go about getting bash to run this simple if statement.
Thanks!
برچسب:
نویسنده: استخدام کار