avast / hdfs-shell

HDFS Shell is a HDFS manipulation tool to work with functions integrated in Hadoop DFS
Apache License 2.0
150 stars 33 forks source link

Recognize correct SCRIPT_DIR with symlink #16

Closed ttimasdf closed 5 years ago

ttimasdf commented 5 years ago

The hdfs-shell.sh script will fail to find its home directory when it's symlinked to other locations through ln -s. Add readlink inside dirname command will get the expected behaviour.