File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ function do_config_backup {
126126 CONFIG_BACKUP=true
127127 FILENAME=" config.preinstall-$LIBRARY_NAME -$DATESTAMP .txt"
128128 inform " Backing up $CONFIG_DIR /$CONFIG_FILE to $CONFIG_DIR /$FILENAME \n"
129- sudo cp " $CONFIG_DIR /$CONFIG_FILE $CONFIG_DIR /$FILENAME "
129+ sudo cp " $CONFIG_DIR /$CONFIG_FILE " " $CONFIG_DIR /$FILENAME "
130130 mkdir -p " $RESOURCES_TOP_DIR /config-backups/"
131131 cp $CONFIG_DIR /$CONFIG_FILE " $RESOURCES_TOP_DIR /config-backups/$FILENAME "
132132 if [ -f " $UNINSTALLER " ]; then
@@ -301,7 +301,9 @@ for ((i = 0; i < ${#SETUP_CMDS[@]}; i++)); do
301301 if [[ " $CMD " == * " raspi-config" * ]] || [[ " $CMD " == * " $CONFIG_DIR /$CONFIG_FILE " * ]] || [[ " $CMD " == * " \$ CONFIG_DIR/\$ CONFIG_FILE" * ]]; then
302302 do_config_backup
303303 fi
304- printf " \" %s\" \n" " $CMD "
304+ if [[ ! " $CMD " == printf* ]]; then
305+ printf " Running: \" %s\" \n" " $CMD "
306+ fi
305307 eval " $CMD "
306308 check_for_error
307309done
You can’t perform that action at this time.
0 commit comments