pkgs/pull-scans: Add script
This commit is contained in:
11
pkgs/pull-scans/pull-scan.sh
Executable file
11
pkgs/pull-scans/pull-scan.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
TMP=$(mktemp -d)
|
||||
|
||||
scp "carbon.net.clerie.de:/var/lib/scan-to-gpg/*.asc" "${TMP}"
|
||||
|
||||
find "${TMP}" -iname "*.asc" | gpg --decrypt-files
|
||||
|
||||
find "${TMP}" -mindepth 1 -not -iname "*.asc" -type f | xargs mv -t .
|
||||
|
||||
rm -r "${TMP}"
|
Reference in New Issue
Block a user