universal-git update/add workflows

This commit is contained in:
aptalca
2023-05-18 15:45:58 -04:00
parent a120f16aa8
commit 4efe691fcf
6 changed files with 60 additions and 69 deletions
-5
View File
@@ -1,5 +0,0 @@
#!/usr/bin/with-contenv bash
if [ -f /usr/bin/apt ]; then
apt-get update
fi
-15
View File
@@ -1,15 +0,0 @@
#!/usr/bin/with-contenv bash
# Determine if setup is needed
if ! command -v git; then
## 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