Skip to content

Commit

Permalink
修改linux分支的判断,使得selected 选项生效
Browse files Browse the repository at this point in the history
  • Loading branch information
toolchainx authored and oldratlee committed Jul 15, 2014
1 parent 3795605 commit a96960f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpl
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ for file in "${files[@]}" ; do
explorer ${selected:+/select,} "$(cygpath -w "${file}")"
;;
*)
if [ -f "${file}" ] ; then
if [ -d "${file}" ] ; then
nautilus "$(dirname "${file}")"
else
if [ -n "${selected}" ] ; then
if [ -z "${selected}" ] ; then
nautilus "$(dirname "${file}")"
else
nautilus "${file}"
Expand Down

0 comments on commit a96960f

Please sign in to comment.