From 58610ad0f0af12834b5052fe13d83d02e86a0dc8 Mon Sep 17 00:00:00 2001 From: TeF Date: Mon, 7 Sep 2020 10:36:14 +0800 Subject: [PATCH] add support for other package managers --- install-release.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/install-release.sh b/install-release.sh index afa3e52..397e959 100644 --- a/install-release.sh +++ b/install-release.sh @@ -99,7 +99,16 @@ identify_the_operating_system_and_architecture() { PACKAGE_MANAGEMENT_REMOVE='zypper remove' else echo "error: The script does not support the package manager in this operating system." - exit 1 + echo + echo -e -n "\033[1;31mDo you want to continue?(y/n)\033[0m" + read s + case $s in + n|N|No|NO) exit 1 + ;; + y|Y|Yes|YES) echo "Manual install starting now" + ;; + *) exit 1 + esac fi else echo "error: This operating system is not supported."