mirror of
https://github.com/techahold/rustdeskinstall.git
synced 2025-12-21 16:11:15 +01:00
install.sh: allow user to continue without dependencies
There is currently a comment indicating a potential future implementation of a system to allow users on unsupported operating systems to continue without all necessary dependencies installed. This patch implements that feature. Signed-off-by: Amy Parker <apark0006@student.cerritos.edu>
This commit is contained in:
13
install.sh
13
install.sh
@@ -90,10 +90,17 @@ elif [ "${ID}" = "arch" ] || [ "${UPSTREAM_ID}" = "arch" ]; then
|
|||||||
sudo pacman -S ${PREREQ} ${PREREQARCH}
|
sudo pacman -S ${PREREQ} ${PREREQARCH}
|
||||||
else
|
else
|
||||||
echo "Unsupported OS"
|
echo "Unsupported OS"
|
||||||
# here you could ask the user for permission to try and install anyway
|
# give them the option to continue
|
||||||
# if they say yes, then do the install
|
echo -n "Would you like to continue? Dependencies may not be satisfied... [y/n] "
|
||||||
# if they say no, exit the script
|
read continue_no_dependencies
|
||||||
|
if [ $continue_no_dependencies == "y" ]; then
|
||||||
|
echo "Continuing..."
|
||||||
|
elif [ $continue_no_dependencies != "n" ]; then
|
||||||
|
echo "Invalid answer, exiting."
|
||||||
exit 1
|
exit 1
|
||||||
|
else
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Choice for DNS or IP
|
# Choice for DNS or IP
|
||||||
|
|||||||
Reference in New Issue
Block a user