daveallie / entangler

Two way file syncer using platform native notify
MIT License
8 stars 6 forks source link

Fix buggy bash syntax #12

Closed ghiculescu closed 6 months ago

ghiculescu commented 6 months ago

bug in https://github.com/daveallie/entangler/pull/11

% ssh -q ruby@(ip) -p 22 -C "([[ -f ~/.rvm/environments/default ]] && source ~/.rvm/environments/default || true) && entangler --version"
bash: entangler: command not found

% ssh -q ruby@(ip) -p 22 -C "[[ -f ~/.rvm/environments/default ]] && source ~/.rvm/environments/default || true && entangler --version"
1.3.0
daveallie commented 6 months ago

wow, I totally thought bash had precedence on || and && operators