I am trying to write a script and I want to ls
a directory. The path is written in a separate file which I am importing with source
. When I execute with
#!/bin/bash
source Settings
echo $PathToLaunchers
echo "Availible launchers"
ls -f --color \$PathToLaunchers
In my Settings file is:
PathToLaunchers="~/Games/Minecraft/Launchers"
It says
ls: cannot access $Path: No such file or directory
when it should ls
the directory that the value holds. How can I make it ls
the directory given by the variable?