summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-13 01:58:22 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-13 01:58:22 (EDT)
commit003e70a8dc1f2b38dfc66f7176ca94483003893f (patch)
tree5c135785da275bb86e2a4cb23d01b1ef301cc168
parent2e837e561d9919ef692abe2de7973d025dff065a (diff)
ob-unpacksource: Make sed BRE POSIX-conformant
-rw-r--r--src/ob-unpacksource.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ob-unpacksource.sh b/src/ob-unpacksource.sh
index cec8213..06e0ba9 100644
--- a/src/ob-unpacksource.sh
+++ b/src/ob-unpacksource.sh
@@ -77,7 +77,7 @@ get_upstream_compression()
get_upstream_dir()
{
upstream_ar_dir="$(tar "-t${upstream_ar_z}f" "${upstream_ar}" | \
- sed -n 's@^\(\./\|\)\([^/]*\)\(/\|\).*$@\2@p' | sort | uniq)"
+ sed -n 's|^\(\./\)\{0,1\}\([^/]\{1,\}\).*$|\2|p' | sort | uniq)"
case "$(echo "${upstream_ar_dir}" | grep -v '^$' | wc -l)" in
0)
ob_error "$(ob_get_msg 'no_upstream_dirs')"