Browse Source

printf rather than echo

Bob Mottram 7 years ago
parent
commit
d57d8cf8a7
2 changed files with 3 additions and 2 deletions
  1. 1
    1
      src/freedombone-image-hardware-setup
  2. 2
    1
      src/freedombone-utils-meteor

+ 1
- 1
src/freedombone-image-hardware-setup View File

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 View File

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