From d02f9c5f330fb6c0c5ea61c1712de7de2d7599dc Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 25 Apr 2019 15:28:47 +0200 Subject: checkDependencies: style --- checkDependencies | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'checkDependencies') 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=$( -- cgit v1.2.3-70-g09d2