#!/bin/bash foo="help" internakCall() { foo='error' echo 'Вызов HTTP сервера GET' } echo $foo internakCall echo $foo