You've already forked macports-contrib
mirror of
https://github.com/macports/macports-contrib.git
synced 2026-07-12 18:18:45 -07:00
fetch-mirror-sites: Tweak to satisfy ShellCheck
git-svn-id: https://svn.macports.org/repository/macports/contrib@153477 d073be05-634f-4543-b044-5fe20cf6d1d6
This commit is contained in:
@@ -24,8 +24,8 @@ EOF
|
||||
}
|
||||
|
||||
# Avoid $0 (http://mywiki.wooledge.org/BashFAQ/028).
|
||||
script=$(basename "$BASH_SOURCE")
|
||||
parent=$(dirname "$BASH_SOURCE")
|
||||
script=$(basename "${BASH_SOURCE[0]}")
|
||||
parent=$(dirname "${BASH_SOURCE[0]}")
|
||||
cd "$parent" || {
|
||||
err "cannot cd(1) into '$parent'"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user