Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/scripts/check-system
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-07-04 23:01:35 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-07-04 23:01:35 (GMT)
commit87c8c83272eb522525c5a455f76eb60e13d42812 (patch)
treef940d3c3cf74d4bc3fd7751d288ddb5d54f86d84 /scripts/check-system
parenta058c452957138b5c75bfccc4eb0dc203c08a558 (diff)
Couple of ubuntu fixes
Diffstat (limited to 'scripts/check-system')
-rwxr-xr-xscripts/check-system6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/check-system b/scripts/check-system
index 17eda54..3fed0f5 100755
--- a/scripts/check-system
+++ b/scripts/check-system
@@ -373,8 +373,8 @@ def check_distro():
# Ubuntu
try:
- distributor = subprocess.check_output(["lsb_release", "-si"])
- release = subprocess.check_output(["lsb_release", "-sr"])
+ distributor = subprocess.check_output(["lsb_release", "-si"]).strip()
+ release = subprocess.check_output(["lsb_release", "-sr"]).strip()
if distributor == "Ubuntu" and release == "12.04":
distro = "ubuntu"
@@ -399,7 +399,7 @@ def apply_ubuntu_tweaks():
subprocess.call(["sudo", ubuntu_tweaks])
def apply_distro_tweaks(distro):
- if distro == "fedora":
+ if distro == "ubuntu":
apply_ubuntu_tweaks()
def warn_if_unsupported(distro):