I have this bash script which is trying to find a directory that partially changes on peoples systems.
cd "$HOMEDIR/AppData/Local/GitHub/PortableGit"*"/bin"
Yet this does not seem to work - it just take the string literal.
Is there an easy to make it expand correctly?
Edit:
Okay this is weird it works some of the time.
When I do this:
GIT_DIR=$HOMEDIR/AppData/Local/GitHub/PortableGit*/bin
eval GIT_DIR_PASS=$GIT_DIR
echo $GIT_DIR_PASS
I get the correct information out
but when I try to assign $GIT_DIR_PASS to another variable I get the string literal version.

"? – Bernhard Feb 20 at 18:55$HOMEis usually the home directory. Are you setting$HOMEDIRmanually? – jordanm Feb 20 at 18:55