Answering this question very late, but I use: SCRIPT=$( readlink -m $( type -p $0 )) # Full path to script BASE_DIR=`dirname ${SCRIPT}` # Directory script ...
確定! 回上一頁