From 96bebb7a5090a473a790b9ba29f12735e1699467 Mon Sep 17 00:00:00 2001 From: xonix Date: Wed, 29 Sep 2021 20:14:56 +0300 Subject: [PATCH] rfct --- tests/12_update.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/12_update.sh b/tests/12_update.sh index 82597d6..d33650d 100644 --- a/tests/12_update.sh +++ b/tests/12_update.sh @@ -27,10 +27,10 @@ else cmd1=`command -v $cmd` fi - ( + { echo "#!/bin/sh" echo "exec $cmd1 \"\$@\"" - ) > "$D/$cmd" + } > "$D/$cmd" chmod +x "$D/$cmd" done @@ -63,7 +63,7 @@ @goal wget_prepared @depends_on makesure_prepared cmd="wget" - ( + { echo "#!/bin/bash" echo 'echo "running wget"' if cmd1=`command -v $cmd` @@ -73,16 +73,16 @@ # fake wget with curl echo "exec $(command -v curl) \"\${1/-q/-s}\" \"\$2\" \"\${3/-O/-o}\"" fi - ) > "$D/$cmd" + } > "$D/$cmd" chmod +x "$D/$cmd" @goal curl_prepared @depends_on makesure_prepared cmd="curl" cmd1=`command -v $cmd` - ( + { echo "#!/bin/sh" echo 'echo "running curl"' echo "exec $cmd1 \"\$@\"" - ) > "$D/$cmd" + } > "$D/$cmd" chmod +x "$D/$cmd"