Skip to content

Commit

Permalink
Added check to ensure package archive exists before installing
Browse files Browse the repository at this point in the history
  • Loading branch information
Zedeldi committed Jul 10, 2020
1 parent 731003b commit 0b761bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions monocleOS_Installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root."
exit 1
fi
if [ ! -e $pkgtar ]; then
echo "$pkgtar does not exist."
exit 1
fi
if [ -n "$installDisk" ]; then
if (( ( $(($swapSize / 1048576)) + $rootSize + 5) > $diskSize )); then
echo "Sum of partition sizes are greater than size of disk. Aborting..."
Expand Down

0 comments on commit 0b761bb

Please sign in to comment.