Skip to content

Commit

Permalink
rfct
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Sep 29, 2021
1 parent 6a9734e commit 96bebb7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/12_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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`
Expand All @@ -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"

0 comments on commit 96bebb7

Please sign in to comment.