8000 所有的变量不使用export关键字,防止多线程调用shell时引起的环境变量污染 · home-coder/yun-update-source@4d7fbe4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4d7fbe4

Browse files
committed
所有的变量不使用export关键字,防止多线程调用shell时引起的环境变量污染
1 parent a2df4a3 commit 4d7fbe4

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

include.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@
22
# include.sh 环境依赖项
33
#
44

5-
export SCRIPT_PWD=`pwd`
5+
#XXX 所有的变量不使用export关键字,防止多线程调用shell时引起的环境变量污染
6+
7+
SCRIPT_PWD=`pwd`
68

79
declare -A manifestmap=()
8-
export manifestmap
10+
# manifestmap
911

10-
export CURENT_BRANCH CURENT_DEVICE DEVICE_REGISTER_PATH
12+
#CURENT_BRANCH CURENT_DEVICE DEVICE_REGISTER_PATH
1113

12-
export CBP_PATH="$SCRIPT_PWD/r-config/custom_branch_device"
14+
CBP_PATH="$SCRIPT_PWD/r-config/custom_branch_device"
1315

14-
export UPDATE_FLAG
16+
#UPDATE_FLAG
1517

1618
function debug_import()
1719
{

test_data/custom_ir_1044.kl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ key 16 DEL
1111
key 17 6
1212
key 18 5
1313
key 21 3
14-
key 22 2
14+
key 22 MENU
1515
key 23 INFO
1616
key 24 MENU
1717
key 25 MEDIA_PLAY_PAUSE
1818
key 26 DPAD_UP
1919
key 28 POWER WAKE
2020
key 65 SETTINGS
21-
key 66 MOUSE
21+
key 66 3
2222
key 71 DPAD_LEFT
2323
key 72 DPAD_DOWN
2424
key 75 VOLUME_UP
@@ -31,3 +31,7 @@ key 91 APPS
3131
key 92 MEDIA_NEXT
3232
key 93 MEDIA_PREVIOUS
3333
key 95 MOVIE
34+
key 55 2
35+
key 44 1
36+
key 11 BACK
37+
key 33 0 WAKE

0 commit comments

Comments
 (0)
0