aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-03-25 11:05:57 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-03-25 11:05:57 -0500
commit054c16f719b0df15bb63c908f03e20fab93bd405 (patch)
treed4f4bc9fdb6a4076a05724495274fb053abce122
parent8fbe40ea145e8303713785fbacd8c99ec0fa444c (diff)
Unset unused variables and remove commented out old way of getting DIRNAME.
-rw-r--r--packageinstall.sh3
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