Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Penny committed May 31, 2015
1 parent f2fa0ab commit b1d9475
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apt-cyg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit b1d9475

Please sign in to comment.