We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97b91c0 commit 3d2a091Copy full SHA for 3d2a091
src/r-apt/install.sh
@@ -132,6 +132,8 @@ usermod -a -G staff "${USERNAME}"
132
133
check_packages curl ca-certificates
134
135
+# shellcheck source=/dev/null
136
+source /etc/os-release
137
if [ "${ID}" = "ubuntu" ]; then
138
echo "Set up r2u..."
139
curl -fsSL https://eddelbuettel.github.io/r2u/assets/dirk_eddelbuettel_key.asc | tee -a /etc/apt/trusted.gpg.d/cranapt_key.asc >/dev/null
@@ -162,7 +164,8 @@ elif [ "${ID}" = "debian" ]; then
162
164
# shellcheck disable=SC2206
163
165
APT_PACKAGES=(${APT_PACKAGES[@]/r-cran-httpgd})
166
else
- echo "Unreachable"
167
+ echo "(!) Unsupported distribution: ${ID}"
168
+ echo " This script is designed only for Debian and Ubuntu."
169
exit 1
170
fi
171
0 commit comments