diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-03-25 11:15:34 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-03-25 11:15:34 -0500 |
commit | 89a12d1e4dc4fddf6ea4f3be84310cb789d0bc09 (patch) | |
tree | d11192eb9e13daf2188ca143b51cb3139b28ad38 /packageinstall.sh | |
parent | 3129e0fd3f2928862974902fb06e7258ec122b5e (diff) | |
parent | 41b1fa5813a7e7dd1df52ea8a9afc5062dff9d7d (diff) |
Merge branch 'master' into chapter7
Diffstat (limited to 'packageinstall.sh')
-rw-r--r-- | packageinstall.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packageinstall.sh b/packageinstall.sh index c08710a..6dc7601 100644 --- a/packageinstall.sh +++ b/packageinstall.sh @@ -11,7 +11,6 @@ else VERSION="$(echo "$line" | cut -d\, -f2)" URL="$(echo "$line" | cut -d\, -f3 | sed "s/@/${VERSION}/g")" CACHEFILE="$(basename "${URL}")" - #DIRNAME="$(echo "${CACHEFILE}" | sed 's/\(.*\)\.tar\..*/\1/')" DIRNAME="$(tar -tf "${CACHEFILE}" | sed -e 's@/.*@@' | uniq)" # Remove existing if exists @@ -49,3 +48,5 @@ else done fi + +unset VERSION URL CACHEFILE DIRNAME CHAPTER PACKAGE |