I have a script that begin like this
#!/bin/bash
VALKYRIE=~/myProjects/valkyrie
source $VALKYRIE/cluster.conf
but when I run it it returns
line 2: ~/myProjects/valkyrie/cluster.conf: No such file or directory
but the file exist and when I run source ~/myProjects/valkyrie/cluster.conf it runs fine.
Any idea? I set VALKYRIE variable elsewhere so hard-code in the path isn't an option.