Skip to content

Instantly share code, notes, and snippets.

View dandyrow's full-sized avatar
🏢
Working from the office

Daniel Lowry dandyrow

🏢
Working from the office
  • Kainos
View GitHub Profile
@dandyrow
dandyrow / paru-ansible-shim.sh
Last active July 12, 2025 03:25
This is a simple shim to allow paru AUR helper to be fully used with the community.general.pacman Ansible module. While it works normally with packages in the official repos, it does not work with packages in the AUR as the --print-format argument is not implemented by paru instead it passes the arg and the packages through to pacman. This scrip…
#!/bin/sh
command_args=()
while [ "$#" -gt 0 ]; do
if [ "$1" = "--print-format" ]; then
# Ignore --print-format and its string arg
shift
shift
else