X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=mount-latest-remote;h=279a61b4dcb2bdebadf8aafdcf3b0469f9d3f5e3;hp=33633111b6f47b1b00ca5af3a1c20e4682cb5081;hb=HEAD;hpb=50f25d1eec109c4596cfc638c9a7c98da0f0b5d0 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"