Skip to content

Commit

Permalink
Merge pull request #33 from pimoroni/patch-boilerplate-sync
Browse files Browse the repository at this point in the history
Sync to boilerplate.
  • Loading branch information
Gadgetoid authored May 10, 2024
2 parents 2cecade + c04febd commit fff91c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,6 @@ find_config() {
if [ ! -f "$CONFIG_DIR/$CONFIG_FILE" ]; then
fatal "Could not find $CONFIG_FILE!"
fi
else
if [ -f "/boot/$CONFIG_FILE" ] && [ ! -L "/boot/$CONFIG_FILE" ]; then
warning "Oops! It looks like /boot/$CONFIG_FILE is not a link to $CONFIG_DIR/$CONFIG_FILE"
warning "You might want to fix this!"
fi
fi
inform "Using $CONFIG_FILE in $CONFIG_DIR"
}
Expand Down Expand Up @@ -157,7 +152,8 @@ function apt_pkg_install {
sudo apt update
APT_HAS_UPDATED=true
fi
sudo apt install -y "$PACKAGES"
# shellcheck disable=SC2086
sudo apt install -y $PACKAGES
check_for_error
if [ -f "$UNINSTALLER" ]; then
echo "apt uninstall -y $PACKAGES" >> "$UNINSTALLER"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,5 @@ apt_packages = []
configtxt = []
commands = [
"printf \"Setting up i2c...\n\"",
"sudo raspi-config nonint do_i2c 0"
"sudo raspi-config nonint do_i2c 0"
]

0 comments on commit fff91c8

Please sign in to comment.