X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=ssh-emacs-setup;h=ee1dd087ba8e9a443ce5135210996ff9c7db0371;hp=b89f2bd899438c60d364f9f913e10dad98972dae;hb=HEAD;hpb=50f25d1eec109c4596cfc638c9a7c98da0f0b5d0 diff --git a/ssh-emacs-setup b/ssh-emacs-setup index b89f2bd..309ab0a 100755 --- a/ssh-emacs-setup +++ b/ssh-emacs-setup @@ -32,7 +32,9 @@ if [[ -s ~/.bashrc ]];then . ~/.bashrc;fi set -eE -o pipefail trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?"' ERR -readonly this_file; this_file="$(readlink -f -- "${BASH_SOURCE[0]}")"; cd ${this_file%/*} +this_file="$(readlink -f -- "${BASH_SOURCE[0]}")" +readonly this_file this_dir="${this_file%/*}" +cd "$this_dir" # get rid of useless motd stuff sed -i --follow-symlinks 's/^\s*PrintLastLog .*/PrintLastLog no/' /etc/ssh/sshd_config rm -f /etc/update-motd.d/10-help-text /etc/update-motd.d/00-header