diff --git a/external-sys76.sh b/external-sys76.sh index 7e0a5d3..e3ca78d 100644 --- a/external-sys76.sh +++ b/external-sys76.sh @@ -21,16 +21,16 @@ rm -rf /etc/apt/preferences.d/*pika* echo 'deb [arch=amd64 trusted=yes] https://ppa.launchpadcontent.net/system76-dev/pre-stable/ubuntu lunar main' | sudo tee /etc/apt/sources.list.d/external.list apt update -y --allow-unauthenticated -echo $(../../ppp https://ppa.pika-os.com/dists/lunar/external/binary-amd64/Packages https://ppa.launchpadcontent.net/system76-dev/pre-stable/ubuntu/dists/lunar/main/binary-amd64/Packages.xz | tr '\n' ' ') +echo $(../../ppp https://ppa.pika-os.com/dists/lunar/external/binary-amd64/Packages https://ppa.launchpadcontent.net/system76-dev/pre-stable/ubuntu/dists/lunar/main/binary-amd64/Packages.xz) > ppp.out +PPP=$(cat ppp.out | tr '\n' ' ') - -#if [ ! -z $PPP ] -#then -# apt download $PPP -y -#else -# echo "Repos are synced" +if [ ! -z $PPP ] +then + apt download $PPP -y +else + echo "Repos are synced" exit 0 -#fi +fi # Return to Extranal System76 PPA MIRROR cd ../ diff --git a/rocm.sh b/rocm.sh index 4c5f8b2..850fa79 100644 --- a/rocm.sh +++ b/rocm.sh @@ -22,7 +22,9 @@ echo 'deb [arch=amd64 trusted=yes] https://repo.radeon.com/rocm/apt/5.6 jammy ma wget -O - http://repo.radeon.com/rocm/rocm.gpg.key | apt-key add - apt update -y -export PPP=$(../../ppp https://ppa.pika-os.com/dists/lunar/rocm/binary-amd64/Packages http://repo.radeon.com/rocm/apt/5.6/dists/jammy/main/binary-amd64/Packages | tr '\n' ' ') +echo $(../../ppp https://ppa.pika-os.com/dists/lunar/rocm/binary-amd64/Packages http://repo.radeon.com/rocm +/apt/5.6/dists/jammy/main/binary-amd64/Packages) > ppp.out +PPP=$(cat ppp.out | tr '\n' ' ') if [ ! -z $PPP ] then