Skip to content

Commit f0e3f93

Browse files
committed
install.sh: slightly better feedback for setup commands.
1 parent 5e294af commit f0e3f93

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

install.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ venv_check() {
117117
check_for_error() {
118118
if [ $? -ne 0 ]; then
119119
CMD_ERRORS=true
120-
warning "^^^ 😬"
120+
warning "^^^ 😬 previous command did not exit cleanly!"
121121
fi
122122
}
123123

@@ -290,14 +290,18 @@ fi
290290

291291
find_config
292292

293+
printf "\n"
294+
293295
# Run the setup commands from pyproject.toml / tool.pimoroni.commands
294296

297+
inform "Running setup commands...\n"
295298
for ((i = 0; i < ${#SETUP_CMDS[@]}; i++)); do
296299
CMD="${SETUP_CMDS[$i]}"
297300
# Attempt to catch anything that touches config.txt and trigger a backup
298301
if [[ "$CMD" == *"raspi-config"* ]] || [[ "$CMD" == *"$CONFIG_DIR/$CONFIG_FILE"* ]] || [[ "$CMD" == *"\$CONFIG_DIR/\$CONFIG_FILE"* ]]; then
299302
do_config_backup
300303
fi
304+
printf "\"%s\"\n" "$CMD"
301305
eval "$CMD"
302306
check_for_error
303307
done
@@ -365,4 +369,4 @@ if [ "$CMD_ERRORS" = true ]; then
365369
exit 1
366370
else
367371
exit 0
368-
fi
372+
fi

0 commit comments

Comments
 (0)