mirror of
https://github.com/gilbN/theme.park.git
synced 2024-08-17 15:39:36 +02:00
check for package manager
This commit is contained in:
parent
d70e0e9529
commit
2455e4aed3
@ -27,8 +27,13 @@ if ! [[ -x "$(command -v svn)" ]]; then
|
|||||||
echo '--------------------------'
|
echo '--------------------------'
|
||||||
echo '| Installing svn package |'
|
echo '| Installing svn package |'
|
||||||
echo '--------------------------'
|
echo '--------------------------'
|
||||||
apt-get update && \
|
if [ -x "$(command -v apk)" ]; then
|
||||||
apt-get install -y subversion
|
apk update && \
|
||||||
|
apk add --no-cache subversion
|
||||||
|
elif [ -x "$(command -v apt-get)" ]; then
|
||||||
|
apt-get update && \
|
||||||
|
apt-get install -y subversion
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Display variables for troubleshooting
|
# Display variables for troubleshooting
|
||||||
|
Loading…
Reference in New Issue
Block a user