This commit is contained in:
Steven Penny 2015-05-30 23:12:04 -05:00
parent f2fa0ab790
commit b1d9475b34
1 changed files with 4 additions and 4 deletions

View File

@ -375,8 +375,8 @@ function download {
32) hash=md5sum ;;
128) hash=sha512sum ;;
esac
mkdir -p $cache/$mirrordir/$dn
cd $cache/$mirrordir/$dn
mkdir -p "$cache/$mirrordir/$dn"
cd "$cache/$mirrordir/$dn"
if ! test -e $bn || ! $hash -c <<< "$digest $bn"
then
wget -O $bn $mirror/$dn/$bn
@ -385,7 +385,7 @@ function download {
tar tf $bn | gzip > /etc/setup/"$pkg".lst.gz
cd ~-
mv desc $cache/$mirrordir/$dn
mv desc "$cache/$mirrordir/$dn"
echo $dn $bn > /tmp/dwn
}
@ -449,7 +449,7 @@ function apt-install {
read dn bn </tmp/dwn
echo Unpacking...
cd $cache/$mirrordir/$dn
cd "$cache/$mirrordir/$dn"
tar -x -C / -f $bn
# update the package database