Skip to content

Commit

Permalink
api: add further is_supported_system optimizations
Browse files Browse the repository at this point in the history
was supposed to be included in 0952537
  • Loading branch information
theofficialgman committed Aug 30, 2023
1 parent 0952537 commit 9f30c69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api
Original file line number Diff line number Diff line change
Expand Up @@ -2570,7 +2570,7 @@ Specifically, the issue is $(wc -l <<<"$frankendebian" | grep -q 1 && echo 'this
echo "Congratulations, Linux tinkerer, you broke your system. The init package can not be found, which means you have removed the default debian sources from your system.
All apt based application installs will fail. Unless you have a backup of your /etc/apt/sources.list /etc/apt/sources.list.d you will need to reinstall your OS."
return 1
elif [ -z "$(apt-get indextargets --no-release-info --format '$(SITE) $(RELEASE) $(TARGET_OF)' | sort -u | awk '{if ($3=="deb") print $1" "$2 }')" ];then
elif [ -z "$DEFAULT_REPOS" ];then
echo "Congratulations, Linux tinkerer, you broke your system. You have removed ALL debian sources from your system.
All apt based application installs will fail. Unless you have a backup of your /etc/apt/sources.list /etc/apt/sources.list.d you will need to reinstall your OS."
return 1
Expand Down

0 comments on commit 9f30c69

Please sign in to comment.