File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
function sshrc() {
3
3
local SSHHOME=${SSHHOME:= ~}
4
- if [ -e $SSHHOME /.sshrc ]; then
4
+ if [ -f $SSHHOME /.sshrc ]; then
5
5
local files=.sshrc
6
6
if [ -d $SSHHOME /.sshrc.d ]; then
7
7
files=" $files .sshrc.d"
22
22
) " ' | xxd -ps -r > " ' $SSHHOME/bashsshrc' "
23
23
chmod +x " ' $SSHHOME/bashsshrc' "
24
24
export SSHRCCLEANUP=" ' $SSHHOME' "
25
- echo $'" $( tar cz -h -C $SSHHOME $files | xxd -ps) " ' | xxd -ps -r | tar xz -C " ' $SSHHOME' "
25
+ echo $'" $( tar cz -h -C $SSHHOME $files | xxd -ps) " ' | xxd -ps -r | tar mxz -C " ' $SSHHOME' "
26
26
export SSHHOME=" ' $SSHHOME' "
27
27
#bash --rcfile <(echo 'if [ -e /etc/bash.bashrc ]; then source /etc/bash.bashrc; fi; if [ -e ~/.bashrc ]; then source ~/.bashrc; fi; source " ' $SSHHOME' " /.sshrc; export PATH=" ' $PATH' " :" ' $SSHHOME' " ')
28
28
" ' $SSHHOME' " /bashsshrc
You can’t perform that action at this time.
0 commit comments