I needed to reference another relative script from another script. This is fairly common. Heres how to set this up for your bash scripts.
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
cd "$parent_path"
Related External Links:
I needed to reference another relative script from another script. This is fairly common. Heres how to set this up for your bash scripts.
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
cd "$parent_path"
Related External Links:
Article Topic:Software Development - Linux
Date:August 26, 2020
Want me to help develop your next Ruby-on-Rails project or application?
Contact Me