If you want to get a solution that returns Windows or Linux formatted path try this solution: #!/bin/bash. . SCRIPT_DIR=$(cd "$(dirname ...
確定! 回上一頁