lms: use sh instead of bash in notifyDesktop.sh

A recent update to OE-core revealed the missing runtime dependency:

ERROR: lms8-8.0.0-7-r0 do_package_qa: QA Issue: /usr/bin/notifyDesktop.sh
contained in package lms8 requires /bin/bash, but no providers found in
RDEPENDS_lms8? [file-rdeps]

But it turns out that notifyDesktop doesn't actually require bash:

$ checkbashisms.pl notifyDesktop.sh
could not find any possible bashisms in bash script notifyDesktop.sh

So just change the shebang line to /bin/sh.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
CC: mikko.ylinen@linux.intel.com
CC: anand.vastrad@intel.com
Signed-off-by: Saul Wold <sgw@linux.intel.com>
This commit is contained in:
California Sullivan 2017-08-23 12:56:10 -07:00 committed by Saul Wold
parent fbc17ee77b
commit e6d3676b59

View File

@ -1672,7 +1672,7 @@ index 0000000..06bfd97
--- /dev/null
+++ b/src/notifyDesktop.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+#!/bin/sh
+# get list of current users
+for x in $(who | sort -u -k1,1 | awk '{print $1}'); do
+ # send message to anyone on display 0