Skip to content

Commit

Permalink
Merge pull request #591 from asdf-vm/fix-sed-for-paths
Browse files Browse the repository at this point in the history
Fix sed command so it handles paths correctly

Fixes #559
  • Loading branch information
Stratus3D authored Oct 31, 2019
2 parents e6909fa + 1580310 commit d1f36f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commands/version_commands.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ version_command() {


if [ -f "$file" ] && grep "^$plugin " "$file" > /dev/null; then
sed -i.bak -e "s/^$plugin .*$/$plugin ${versions[*]}/" "$file"
sed -i.bak -e "s|^$plugin .*$|$plugin ${versions[*]}|" "$file"
rm "$file".bak
else
echo "$plugin ${versions[*]}" >> "$file"
Expand Down

0 comments on commit d1f36f2

Please sign in to comment.