lib/mkalias.rb in mkalias-1.0.7 vs lib/mkalias.rb in mkalias-1.0.8

- old
+ new

@@ -93,10 +93,10 @@ command_regex = /mkalias_#{alias_name}\(\)[{](.+)[;]/ file_text = File.open(file_path, &:read) commands = file_text.scan(command_regex).flatten.first - commands = commands.split(';').each(&:strip!) unless commands + commands = commands.split(';').each(&:strip!) if commands commands end def remove_one_alias(alias_name, file_path = BASHRC_PATH)