TOKEN=$(if [[ $TOKEN ]] then echo $TOKEN else cat ./cloud/token fi)
So I'm trying to set the variable TOKEN. This might of been set previously in which case I'd like for that value to be used and if not I'd like for it to be assigned by catting a file.
The above doesn't work as my skills in bash are lacking!
 
     
     
     
     
     
     
    