X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=mount-latest-remote;fp=mount-latest-remote;h=f63a6f7954da3df926aabdf6560c75e9bd5abece;hp=33633111b6f47b1b00ca5af3a1c20e4682cb5081;hb=da8b091d08c731d798c522b1cb08e59c48e348cc;hpb=1723d09bec8364d16a156b195fd08b9f62cbc98b diff --git a/mount-latest-remote b/mount-latest-remote index 3363311..f63a6f7 100755 --- a/mount-latest-remote +++ b/mount-latest-remote @@ -26,8 +26,8 @@ set -e; . /usr/local/lib/bash-bear; set +e -readonly this_file; this_file="$(readlink -f -- "${BASH_SOURCE[0]}")"; -script_dir=${this_file%/*} +this_file="$(readlink -f -- "${BASH_SOURCE[0]}")" +readonly this_file script_dir="${this_file%/*}" if (( ! $# )); then echo "mount-latest-remote: error: a host argument"