#!/bin/bash latest_source_url=$(curl -s https://api.github.com/repos/mcdope/pam_usb/releases/latest | grep tarball_url | head -n 1 | cut -d '"' -f 4) wget -qO- "${latest_source_url}" | tar --transform 's/^mcdope-pam_usb.*/mcdope-pam_usb/' -xvz -C . #curl "${latest_source_url}" | tar -czf ./libpam-latest/ -