Edited bash script