standardize apt-get, update formatting

This commit is contained in:
aptalca
2021-06-29 11:35:40 -04:00
parent 6a6148b96b
commit 067fb7ab1f
2 changed files with 15 additions and 11 deletions
+10 -11
View File
@@ -2,15 +2,14 @@
# Determine if setup is needed
if ! command -v git; then
## Ubuntu
if [ -f /usr/bin/apt ]; then
apt-get update
apt-get install --no-install-recommends -y \
git
fi
# Alpine
if [ -f /sbin/apk ]; then
apk add --no-cache \
git
fi
## Ubuntu
if [ -f /usr/bin/apt ]; then
apt-get install --no-install-recommends -y \
git
fi
# Alpine
if [ -f /sbin/apk ]; then
apk add --no-cache \
git
fi
fi