commit 3f268d45477269ca6fb16bb3ca1c97b3e408be21 parent bcab7b3fe7896daac5177ab1ec09b48312c1dc44 Author: clamiax <smoppy@gmail.com> Date: Sat, 17 Oct 2015 17:02:24 +0200 Do not use realpath(1) and cd. Diffstat:
M | browse | | | 3 | +-- |
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/browse b/browse @@ -10,9 +10,8 @@ while true; do exit 0 fi - cd "$TARGET" sel="$(ls -1a "$TARGET" |grep -v '^\.$' | dmenu -l 25)" ec=$? [ "$ec" -ne 0 ] && exit $ec - TARGET="$(realpath "$sel")" + TARGET="${TARGET}/${sel}" done