diff options
author | Erich Eckner <git@eckner.net> | 2019-04-25 15:28:47 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-04-25 15:28:47 +0200 |
commit | d02f9c5f330fb6c0c5ea61c1712de7de2d7599dc (patch) | |
tree | a04945587d1b47d79199a84f47b1c0d32735cca8 | |
parent | 29ce2dc5a035c4920ce0317a5ebe4c2a54ce0507 (diff) | |
download | archlinuxewe-d02f9c5f330fb6c0c5ea61c1712de7de2d7599dc.tar.xz |
checkDependencies: style
-rwxr-xr-x | checkDependencies | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/checkDependencies b/checkDependencies index 01e71b505..54c6d3370 100755 --- a/checkDependencies +++ b/checkDependencies @@ -1,6 +1,7 @@ #!/bin/bash mirror_base='/srv/arch-mirror/arch/arch/merged' +cache_file='/tmp/packages' if [ ! -f '/tmp/packages' ]; then packages=$( @@ -96,12 +97,11 @@ if [ ! -f '/tmp/packages' ]; then done \ | sed ' s/\([<>=]\S\+\)-\S\+$/\1/ - ' + ' \ + | tee "${cache_file}" ) - - printf '%s\n' "${packages}" > /tmp/packages else - packages=$(cat /tmp/packages) + packages=$(cat "${cache_file}") fi packages=$( |