Skip to content

Commit

Permalink
fix up shellcheck issues
Browse files Browse the repository at this point in the history
  • Loading branch information
oklopfer committed Nov 29, 2023
1 parent 6eb74ad commit a15d4b7
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repos:
hooks:
- id: shellcheck
types: []
args: ["-o", "all", "-e", "2148", "-e", "SC2033", "-e", "SC2032", "-e", "SC2034", "-e", "SC2154", "-e", "SC2312", "-e", "SC2164"]
args: ["-o", "all", "-e", "2148", "-e", "SC2033", "-e", "SC2032", "-e", "SC2034", "-e", "SC2154", "-e", "SC2312", "-e", "SC2164", "-e", "SC2143", "-e", "SC2103"]
files: '^.*\.(pacscript|sh)$'
- repo: https://github.com/maxwinterstein/shfmt-py
rev: v3.4.3.1
Expand Down
2 changes: 1 addition & 1 deletion packages/ananicy-cpp/ananicy-cpp.pacscript
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ build() {
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_SYSTEMD=ON \
-DVERSION=${pkgver}
-DVERSION="${pkgver}"
cmake --build build --target ananicy-cpp --parallel "${NCPU}"
}

Expand Down
3 changes: 2 additions & 1 deletion packages/docker-bin/docker-bin.pacscript
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ build() {

package() {
sudo cp -r "../${gives}"/* -t "${pkgdir}/usr/bin"
# shellcheck disable=SC2016
echo '[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
Expand Down Expand Up @@ -116,7 +117,7 @@ post_install() {
post_remove() {
if [[ -f /bin/systemctl ]]; then
for i in multi-user.target.wants/containerd.service multi-user.target.wants/docker.service sockets.target.wants/docker.socket; do
sudo rm /etc/systemd/system/${i} && echo "Removed /etc/systemd/system/${i}."
sudo rm /etc/systemd/system/"${i}" && echo "Removed /etc/systemd/system/${i}."
done
fi
}
2 changes: 1 addition & 1 deletion packages/keepassxc/keepassxc.pacscript
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ build() {
-DCMAKE_INSTALL_LIBDIR=lib \
-DWITH_XC_ALL=ON \
-DWITH_XC_UPDATECHECK=OFF
cmake --build build --parallel ${NCPU}
cmake --build build --parallel "${NCPU}"
}

package() {
Expand Down
2 changes: 1 addition & 1 deletion packages/st-lukesmith-git/st-lukesmith-git.pacscript
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license="MIT"
makedepends=("make" "libharfbuzz-bin" "libxft-dev" "libpango1.0-dev")
depends=("fontconfig")
pkgver() {
git ls-remote ${url} master | cut -f1 | cut -c1-8
git ls-remote "${url}" master | cut -f1 | cut -c1-8
}

package() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ package() {
}

post_install() {
./usr/share/${name}/install.sh -c -a
./usr/share/"${name}"/install.sh -c -a
}
3 changes: 3 additions & 0 deletions packages/tenacity-git/tenacity-git.pacscript
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ case "${codename}" in
lunar)
depends+=("libavcodec59" "libavformat59" "libavutil57" "libflac++10" "libflac8" "libportsmf0v5" "libwxbase3.2-0" "libwxgtk3.2-0")
;;
*)
depends+=("libavcodec60" "libavformat60" "libavutil58" "libflac++10" "libflac12" "libportsmf0v5" "libwxbase3.2-1" "libwxgtk3.2-1")
;;
esac
replace=("audacity")
pkgdesc="FLOSS Audacity Fork. No telemetry, crash reports and other shenanigans like that!"
Expand Down

0 comments on commit a15d4b7

Please sign in to comment.