Skip to content

Commit 1b6a2b4

Browse files
committed
helper fix
Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
1 parent 091936c commit 1b6a2b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mixlib/install/generator/bourne/scripts/helpers.sh.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ do_fetch() {
183183
echo "trying fetch..."
184184
fetch --user-agent="User-Agent: <%= user_agent_string %>" -o "$2" "$1" 2>$tmp_dir/stderr
185185
# check for bad return status
186-
if [ $? -ne 0 ]; then
186+
[ $? -ne 0 ] && return 1
187187
return 0
188188
}
189189

0 commit comments

Comments
 (0)