#safe bash scripting