From 215da081ebd6a4bd47211e6480ca9819fa16a994 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Fri, 15 Feb 2019 19:40:32 +0100 Subject: [PATCH] Adding release candidate installer --- BuildFiles/Testing/scripts/rc-install.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 BuildFiles/Testing/scripts/rc-install.sh diff --git a/BuildFiles/Testing/scripts/rc-install.sh b/BuildFiles/Testing/scripts/rc-install.sh new file mode 100755 index 00000000..3256e39b --- /dev/null +++ b/BuildFiles/Testing/scripts/rc-install.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +ISDEBIAN=$(cat /etc/os-release | grep "ID=debian" | wc -l) +ISUBUNTU=$(cat /etc/os-release | grep "ID=ubuntu" | wc -l) + +if [[ $ISDEBIAN -gt 0 ]]; then + echo "Debian detected" +elif [[ $ISUBUNTU -gt 0 ]]; then + echo "Ubuntu detected" +else + echo "Operating system not detected, aborting" + exit 1 +fi + +