瀏覽代碼

printf rather than echo

Bob Mottram 7 年之前
父節點
當前提交
d57d8cf8a7
共有 2 個檔案被更改,包括 3 行新增2 行删除
  1. 1
    1
      src/freedombone-image-hardware-setup
  2. 2
    1
      src/freedombone-utils-meteor

+ 1
- 1
src/freedombone-image-hardware-setup 查看文件

218
     if [ ! -d /etc/flash-kernel ] ; then
218
     if [ ! -d /etc/flash-kernel ] ; then
219
        mkdir /etc/flash-kernel
219
        mkdir /etc/flash-kernel
220
     fi
220
     fi
221
-    echo "$1" > /etc/flash-kernel/machine
221
+    printf "%s" "$1" > /etc/flash-kernel/machine
222
 
222
 
223
     command_line=""
223
     command_line=""
224
     if [ -n "$2" ] ; then
224
     if [ -n "$2" ] ; then

+ 2
- 1
src/freedombone-utils-meteor 查看文件

112
         exit 693252
112
         exit 693252
113
     fi
113
     fi
114
 
114
 
115
-    mv "${INSTALL_TMPDIR}/.meteor" "$meteor_dir"
115
+    # shellcheck disable=SC2086
116
+    mv ${INSTALL_TMPDIR}/.meteor $meteor_dir
116
 
117
 
117
     meteor_cleanUp
118
     meteor_cleanUp
118
 
119