Add Distribution guessing

This commit is contained in:
Isaac Connor 2017-04-24 16:54:01 -04:00
parent c5d2652d1b
commit 4d851dc00f
1 changed files with 5 additions and 0 deletions

View File

@ -63,6 +63,11 @@ if [ "$TYPE" == "" ]; then
TYPE="source"; TYPE="source";
fi; fi;
if [ "$DISTRO" == "" ]; then
DISTRO=`lsb_release -a 2>/dev/null | grep Codename | awk '{print $2}'`;
echo "Guessed distro as $DISTRO";
fi;
# Release is a special mode... it uploads to the release ppa and cannot have a snapshot # Release is a special mode... it uploads to the release ppa and cannot have a snapshot
if [ "$RELEASE" != "" ]; then if [ "$RELEASE" != "" ]; then
if [ "$SNAPSHOT" != "" ]; then if [ "$SNAPSHOT" != "" ]; then