diff options
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 |