summarylogtreecommitdiffstats
path: root/0001-mbm_powerstate-protect-from-empty-1.patch
blob: 207a0ce344b989955d7db4e13c85b84844a877d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From dc12bd61a349fa9baf92637d2cc61b806674ed32 Mon Sep 17 00:00:00 2001
From: Olivier Mehani <shtrom@ssji.net>
Date: Thu, 21 Mar 2019 21:53:35 +1100
Subject: [PATCH] mbm_powerstate: protect from empty $1

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
---
 utils/mbm_powerstate | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/mbm_powerstate b/utils/mbm_powerstate
index 2c15936..857ae81 100755
--- a/utils/mbm_powerstate
+++ b/utils/mbm_powerstate
@@ -7,7 +7,7 @@ sleep="0"
 
 echo "PIN = $PIN   PUK = $PUK"
 
-if [ $1 == "1" ]
+if [ "$1" == "1" ]
 then
 	let sleep="0"
 else
-- 
2.21.0