systemd and vars dont work well
This commit is contained in:
6
scan.sh
6
scan.sh
@@ -5,12 +5,6 @@
|
|||||||
|
|
||||||
cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1
|
cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1
|
||||||
|
|
||||||
if [[ $XDG_SESSION_TYPE != "x11" ]]; then
|
|
||||||
echo "Unsupported session type: $XDG_SESSION_TYPE"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
zbarcam --nodisplay $1 | while read line; do
|
zbarcam --nodisplay $1 | while read line; do
|
||||||
if [[ $line == *:* ]]; then
|
if [[ $line == *:* ]]; then
|
||||||
code="${line#*:}"
|
code="${line#*:}"
|
||||||
|
|||||||
Reference in New Issue
Block a user