Fixed bug with folder names containing whitespaces
This commit is contained in:
parent
cbd56b6bac
commit
4095d48c20
1 changed files with 4 additions and 4 deletions
|
@ -24,23 +24,23 @@ while true; do
|
||||||
echo "$UP";
|
echo "$UP";
|
||||||
echo "$OPEN_EXPLORER";
|
echo "$OPEN_EXPLORER";
|
||||||
echo "$OPEN_TERMINAL";
|
echo "$OPEN_TERMINAL";
|
||||||
ls $DIR;
|
ls "$DIR";
|
||||||
) | $DMENU -i
|
) | $DMENU -i
|
||||||
)
|
)
|
||||||
if [ -z "$choice" ]; then
|
if [ -z "$choice" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
elif [ "$choice" == "$UP" ]; then
|
elif [ "$choice" == "$UP" ]; then
|
||||||
DIR=$(dirname $DIR)
|
DIR=$(dirname "$DIR")
|
||||||
elif [ "$choice" == "$OPEN_EXPLORER" ]; then
|
elif [ "$choice" == "$OPEN_EXPLORER" ]; then
|
||||||
($OPEN_CMD "$DIR" &) &
|
($OPEN_CMD "$DIR" &) &
|
||||||
exit 0
|
exit 0
|
||||||
elif [ "$choice" == "$OPEN_TERMINAL" ]; then
|
elif [ "$choice" == "$OPEN_TERMINAL" ]; then
|
||||||
( cd $DIR; $TERM_CMD &) &
|
( cd "$DIR"; $TERM_CMD &) &
|
||||||
exit 0
|
exit 0
|
||||||
elif [ -f "$DIR/$choice" ]; then
|
elif [ -f "$DIR/$choice" ]; then
|
||||||
($OPEN_CMD "$DIR/$choice" &) &
|
($OPEN_CMD "$DIR/$choice" &) &
|
||||||
exit 0
|
exit 0
|
||||||
elif [ -d "$DIR/$choice" ]; then
|
elif [ -d "$DIR/$choice" ]; then
|
||||||
DIR=$DIR/$choice
|
DIR="$DIR/$choice"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue