I have been trying to learn more about bash scripting and came across this statement at the beginning of an installation script I was looking through.
Firstly, as this is at the start of the script, I don't understand what $1 could be pointing to. I understand $0 is the script itself. What would $1 refer to?
Secondly, what does it mean to subtract the home directory from $1?
If someone could please explain what is happening here, I'd really appreciate it!
(Btw, the actual script I'm referring to is the installation script for the yin-yang dark theme manager: https://github.com/oskarsh/Yin-Yang/blob/master/install.sh, if that helps any.)