Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit 9a140a4

Browse files
committed
Fix: Use the '-' option correctly
1 parent 466da26 commit 9a140a4

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

kd.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ shift
4444
mountFolder=""
4545
file=""
4646
if [ $# -gt 0 ]; then
47-
if [ $1 == "-" ]; then
48-
shift
49-
else
47+
if [ $1 != "-" ]; then
5048
fileOrDirectory=$(echo "$(cd "$(dirname "$1")"; pwd -P)/$(basename "$1")")
5149
if [ -f "$fileOrDirectory" ]; then
5250
mountFolder=$(dirname "$fileOrDirectory")

0 commit comments

Comments
 (0)