Okay I have started to write a script that will change the theme of amarok using superkaramba and various themes available, and have already hit upon a problem:
Code:
#!/bin/bash
###################################
#Variables
app="`echo which`"
msg1="$app: no superkaramba in ($PATH)"
##########Start Functions##########
function does_superkaramba ()
{
if [[ `which superkaramba`==$msg1 ]]
then
echo "superkaramba not installed, please install it then re-run this script"
fi
}
does_superkaramba
I have superkaramba, so AFAIK that should exit without printing anything, yet it always prints out the failure message. The variable $msg1 when echoed looks the same as the error message when which comes upon an unistalled program.
Why is it doing this?
Thanks,
Rob