Created
April 11, 2019 03:04
-
-
Save takesato/044f99af96ca6873a9073effd697b65a to your computer and use it in GitHub Desktop.
どこから実行してもスクリプトを置いたパス内を起点に動くようにする
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd "${0%/*}" | |
# cd `dirname $0` | |
# dirname だとスペースのあるパスで上手く動かない |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment