Skip to content

Commit

Permalink
fix os name determination
Browse files Browse the repository at this point in the history
  • Loading branch information
ironsheep committed Aug 3, 2022
1 parent 38aa405 commit a521a6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Tue, 02 Aug 2022 18:37:21 -0600 v1.6.1

- Fix 'bullseye' name determination - remove extra sources output

Thu, 02 Dec 2021 16:36:15 -0600 v1.6.0

- Merged 4 pull requests:
Expand Down
4 changes: 2 additions & 2 deletions ISP-RPi-mqtt-daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from signal import signal, SIGPIPE, SIG_DFL
signal(SIGPIPE, SIG_DFL)

script_version = "1.6.0"
script_version = "1.6.1"
script_name = 'ISP-RPi-mqtt-daemon.py'
script_info = '{} v{}'.format(script_name, script_version)
project_name = 'RPi Reporter MQTT2HA Daemon'
Expand Down Expand Up @@ -397,7 +397,7 @@ def getDeviceModel():

def getLinuxRelease():
global rpi_linux_release
out = subprocess.Popen("/bin/cat /etc/apt/sources.list | /bin/egrep -v '#' | /usr/bin/awk '{ print $3 }' | /bin/grep . | /usr/bin/sort -u",
out = subprocess.Popen("/bin/cat /etc/apt/sources.list | /bin/egrep -v '#' | /usr/bin/awk '{ print $3 }' | /bin/sed -e 's/-/ /g' | /bin/cut -f1 -d' ' | /bin/grep . | /usr/bin/sort -u",
shell=True,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
Expand Down

0 comments on commit a521a6f

Please sign in to comment.