1
0
mirror of https://github.com/gilbN/theme.park.git synced 2024-07-14 16:55:11 +02:00

check for package manager

This commit is contained in:
gilbn 2021-12-16 22:56:48 +01:00
parent d70e0e9529
commit 2455e4aed3

View File

@ -27,8 +27,13 @@ if ! [[ -x "$(command -v svn)" ]]; then
echo '--------------------------'
echo '| Installing svn package |'
echo '--------------------------'
apt-get update && \
apt-get install -y subversion
if [ -x "$(command -v apk)" ]; then
apk update && \
apk add --no-cache subversion
elif [ -x "$(command -v apt-get)" ]; then
apt-get update && \
apt-get install -y subversion
fi
fi
# Display variables for troubleshooting