From 0ad10b8f43c336140a12d7afa0aebdcc2ba3cc1a Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 13 Apr 2016 15:05:25 +0200 Subject: use tempFile instead of pipes --- README | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README b/README index ed8c7a4..9c18643 100755 --- a/README +++ b/README @@ -36,7 +36,10 @@ fi # # ################ -pacman-key --add <(curl -o - "https://arch.eckner.net/archlinuxewe/masterkeys.gpg") +tmpFile="$(mktemp)" +curl -o "${tmpFile}" "https://arch.eckner.net/archlinuxewe/masterkeys.gpg" +pacman-key --add "${tmpFile}" +rm -f "${tmpFile}" ############################ # # @@ -81,7 +84,7 @@ fi if grep -q "^\[archlinuxewe\]\$" /etc/pacman.conf then - tmpFile=$(mktemp) + tmpFile="$(mktemp)" cat /etc/pacman.conf | \ ( while read s @@ -97,5 +100,5 @@ then done ) > "${tmpFile}" cat "${tmpFile}" > /etc/pacman.conf - rm "${tmpFile}" + rm -f "${tmpFile}" fi -- cgit v1.2.3-70-g09d2