Add Distribution guessing
This commit is contained in:
parent
c5d2652d1b
commit
4d851dc00f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue