fix(scripts): resolve shellcheck warnings (#148)

This commit is contained in:
2025-07-10 17:44:36 +03:00
committed by GitHub
parent 5dea757707
commit 91cde60dba
7 changed files with 44 additions and 8 deletions

View File

@@ -38,7 +38,7 @@ install_packages()
if [[ ${pkg:0:1} == "#" ]]; then continue; fi
msgr run "Installing cargo package $pkg"
cargo install --jobs $BUILD_JOBS "$pkg"
cargo install --jobs "$BUILD_JOBS" "$pkg"
msgr run_done "Done installing $pkg"
echo ""
done
@@ -56,13 +56,13 @@ post_install_steps()
msgr run "Removing cargo cache"
cargo cache --autoclean
msgr done "Done removing cargo cache"
msgr "done" "Done removing cargo cache"
}
main()
{
install_packages
msgr done "Installed cargo packages!"
msgr "done" "Installed cargo packages!"
post_install_steps
}

View File

@@ -9,7 +9,7 @@ VERBOSE="${VERBOSE:-0}"
# Check if ntfy is already installed
if x-have "ntfy"; then
msgr done "ntfy already installed"
msgr "done" "ntfy already installed"
exit 0
fi
@@ -50,7 +50,7 @@ install_ntfy()
main()
{
install_ntfy
msgr done "ntfy installation complete"
msgr "done" "ntfy installation complete"
}
main "$@"