Skip to content

Commit

Permalink
Fixed not linux downloads, FreeDOS and others
Browse files Browse the repository at this point in the history
  • Loading branch information
sxiii committed Jan 25, 2023
1 parent 29cd18f commit 3217f92
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 21 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Dennis Ivanov
Copyleft 2020-2023 Dennis Ivanov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
25 changes: 15 additions & 10 deletions distrofunctions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ if [ "$1" == "filesize" ]; then
notlinux
getsize
else
[ ! -f $output ] && wgetcmd && echo "Please wait, unzipping haiku..." && unzip haiku.zip && rm ReadMe.md && mv haiku*iso haiku.iso || echo "Haiku already downloaded."
[ ! -f $output ] && wgetcmd && echo "Please wait, unzipping haiku..." && unzip $output && rm ReadMe.md && mv haiku*iso haiku.iso || echo "Haiku already downloaded."
fi
}

Expand All @@ -677,19 +677,19 @@ if [ "$1" == "filesize" ]; then
notlinux
getsize
else
[ ! -f $output ] && wgetcmd && echo "Wait, unzipping menuetos..." && unzip menuetos.zip && mv M64*.IMG menuetos.img || echo "Menuet already downloaded."
[ ! -f $output ] && wgetcmd && echo "Wait, unzipping menuetos..." && unzip $output && mv M64*.IMG menuetos.img || echo "Menuet already downloaded."
fi
}

kolibrios () {
mirror="http://builds.kolibrios.org/eng/latest-iso.7z"
mirror="https://builds.kolibrios.org/eng/latest-iso.7z"
new="$mirror"
output="kolibrios.7z"
if [ "$1" == "filesize" ]; then
notlinux
getsize
else
[ ! -f $output ] && wgetcmd && echo "Un7zipping kolibri..." && 7z x kolibrios.7z && mv kolibri.iso kolibrios.iso || echo "Kolibri already downloaded."
[ ! -f $output ] && wgetcmd && echo "Un7zipping kolibri..." && 7z x $output && mv kolibri.iso kolibrios.iso || echo "Kolibri already downloaded."
fi
}

Expand All @@ -701,17 +701,22 @@ if [ "$1" == "filesize" ]; then
notlinux
getsize
else
[ ! -f $output ] && wgetcmd && echo "Please wait, unzipping reactos..." && unzip reactos.zip && mv React*iso reactos.iso || echo "Menuet already downloaded."
[ ! -f $output ] && wgetcmd && echo "Please wait, unzipping reactos..." && unzip $output && mv React*iso reactos.iso || echo "ReactOS already downloaded."
fi
}

freedosurl () {
#mirror="https://sourceforge.net/projects/freedos/files/latest/download"
mirror="https://www.freedos.org/download/download/FD12CD.iso"
new="$mirror"
output="freedos.iso"
notlinux
checkfile $1
#mirror="https://www.freedos.org/download/download/FD12CD.iso"
mirror="https://www.freedos.org/download/"
new=$(curl -s $mirror | grep FD13-LiveCD.zip | awk -F"\"" '{ print $2 }')
output="freedos.zip"
if [ "$1" == "filesize" ]; then
notlinux
getsize
else
[ ! -f $output ] && wgetcmd && echo "Please wait, unzipping FreeDOS..." && unzip $output && rm readme.txt && mv FD13BOOT.img freedos.img && mv FD13LIVE.iso freedos.iso || echo "FreeDOS already downloaded."
fi
}

netbootxyz () {
Expand Down
10 changes: 0 additions & 10 deletions index.html

This file was deleted.

0 comments on commit 3217f92

Please sign in to comment.