fix bad bash scripting.