I have these variables in my script:
I want the
TARGET_DIR var to hold this path:
/home/username/.ssh but to use
~ instead of
But when I run the script and try to make new
.ssh dir under username it tells me:
mkdir: cannot create directory ‘~username/.ssh’: No such file or directory
Even though the /home/username dirs exists.
If I do:
How can I use the
~ sign in the variable?