ignore .swp
chmod +x
change spacing from 8 to 4 spaces
replace [ with [[
style changes

move 'then' and 'do' to first line of statement