diff options
author | Erich Eckner <git@eckner.net> | 2021-08-30 06:01:57 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-08-30 06:01:57 +0200 |
commit | 0f1a6f4a7605cc8842f6f1860092809bd30a2499 (patch) | |
tree | 47357c9fd6eb7dd82bc38159ab64634084bbaabc | |
parent | be400e90354dbc867a44fe00a23e7af9617168f9 (diff) | |
download | archlinuxewe-0f1a6f4a7605cc8842f6f1860092809bd30a2499.tar.xz |
neuesPerlPaket: -f neu
-rwxr-xr-x | neuesPerlPaket | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/neuesPerlPaket b/neuesPerlPaket index eb81a21d8..d46823458 100755 --- a/neuesPerlPaket +++ b/neuesPerlPaket @@ -7,9 +7,16 @@ else update=true fi +if [ "x$1" = "x-f" ]; then + force=true + shift +else + force=false +fi + if [ $# -ne 1 ] then - >&2 echo "Verwendung: neuesPerlPaket [-n] cpan-Name" + >&2 echo "Verwendung: neuesPerlPaket [-f|-n] cpan-Name" exit 1 fi @@ -32,7 +39,8 @@ then exit 1 fi -if ls /var/lib/pacman/sync/*.db | \ +if ! ${force} && \ + ls /var/lib/pacman/sync/*.db | \ grep -v "/\(archlinuxewe\|quarry\)\.db\$" | \ xargs -rn1 tar -Oxz --wildcards "*/desc" -f | \ sed ' |