Debloc stop if not on a Debian system

This commit is contained in:
Geoffrey Frogeye 2016-11-20 20:12:27 +01:00
parent ba90c09552
commit 7ca5789489

View file

@ -1,5 +1,11 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if [ ! -f /etc/apt/sources.list ]; then
# Not a debian system
return 0
fi
ARCH=$(dpkg --print-architecture) ARCH=$(dpkg --print-architecture)
DEBLOC_DB=$HOME/.config/debloc/$ARCH DEBLOC_DB=$HOME/.config/debloc/$ARCH
DEBLOC_ROOT=$HOME/.debloc/$ARCH DEBLOC_ROOT=$HOME/.debloc/$ARCH