소스 검색

Fix string comparison

Kevin Heinicke 9 년 전
부모
커밋
d1d6456ea3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      zshrc

+ 1 - 1
zshrc

@@ -28,7 +28,7 @@ printable-code()
 }
 
 # make the clipboard working on remote
-if [[ "$SSH_CLIENT" ]]; then
+if [[ -n "$SSH_CLIENT" ]]; then
   SSH_IP=$(echo $SSH_CLIENT | awk '{print $1}')
   alias pbcopy="ssh $SSH_IP pbcopy"
 fi