[153477] contrib/mirror-utils/fetch-mirror-sites
larryv at macports.org
larryv at macports.org
Sun Oct 2 06:03:36 CEST 2016
Revision: 153477
https://trac.macports.org/changeset/153477
Author: larryv at macports.org
Date: 2016-10-01 21:03:36 -0700 (Sat, 01 Oct 2016)
Log Message:
-----------
fetch-mirror-sites: Tweak to satisfy ShellCheck
Modified Paths:
--------------
contrib/mirror-utils/fetch-mirror-sites
Modified: contrib/mirror-utils/fetch-mirror-sites
===================================================================
--- contrib/mirror-utils/fetch-mirror-sites 2016-10-02 03:52:15 UTC (rev 153476)
+++ contrib/mirror-utils/fetch-mirror-sites 2016-10-02 04:03:36 UTC (rev 153477)
@@ -24,8 +24,8 @@
}
# 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-changes/attachments/20161001/8e9eecf2/attachment-0002.html>
More information about the macports-changes
mailing list