fixed bash shript errors