Skip to content

Commit f372b31

Browse files
Russell StewartRussell Stewart
Russell Stewart
authored and
Russell Stewart
committed
Update sshrc
Fixed error message from timestamps being different on different servers.
1 parent 59dac63 commit f372b31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sshrc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
function sshrc() {
33
local SSHHOME=${SSHHOME:=~}
4-
if [ -e $SSHHOME/.sshrc ]; then
4+
if [ -f $SSHHOME/.sshrc ]; then
55
local files=.sshrc
66
if [ -d $SSHHOME/.sshrc.d ]; then
77
files="$files .sshrc.d"
@@ -22,7 +22,7 @@ EOF
2222
)"' | xxd -ps -r > "'$SSHHOME/bashsshrc'"
2323
chmod +x "'$SSHHOME/bashsshrc'"
2424
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'"
2626
export SSHHOME="'$SSHHOME'"
2727
#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'"')
2828
"'$SSHHOME'"/bashsshrc

0 commit comments

Comments
 (0)