summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-05-28 20:02:52 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-05-28 20:02:52 +0200
commit08f544950aa50dbd02f22286ba2a562ba6c8267d (patch)
tree5a193642dcd1bee80f07ab097a011e06f650ae59
parent3a0c5a01338ecbdaca2ca8ca7db7974cd7f60436 (diff)
don't use <<< as it breaks vims zsh syntax-highlighting
-rwxr-xr-xbin/pkg4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/pkg b/bin/pkg
index 45f690c..28d44c0 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -142,8 +142,8 @@ pkg_list_installed () {
}
pkg_list_available () {
- if (grep "^ssh" <<< "$PKG_ROOT" &> /dev/null) {
- ssh -q $(sed 's!^ssh://!!' <<< "$PKG_ROOT" | sed -r 's!^([^/]*)/.*$!\1!') 'ls -1 packages'
+ if (echo "$PKG_ROOT" | grep "^ssh" &> /dev/null) {
+ ssh -q $(echo "$PKG_ROOT" | sed 's!^ssh://!!' | sed -r 's!^([^/]*)/.*$!\1!') 'ls -1 packages'
}
}