mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-02-21 02:07:32 +08:00
omf.bundle.remove: replace uniq
by sort -u
This commit is contained in:
parent
00e3d3e058
commit
b20f8dd141
@ -4,7 +4,7 @@ function omf.bundle.remove
|
||||
if test -f $bundle
|
||||
set type $argv[1]
|
||||
set name $argv[2]
|
||||
set bundle_contents (cat $bundle | uniq)
|
||||
set bundle_contents (cat $bundle | sort -u)
|
||||
|
||||
rm -f $bundle
|
||||
|
||||
@ -17,7 +17,6 @@ function omf.bundle.remove
|
||||
if not test "$type" = "$record_type" -a "$name" = "$record_basename"
|
||||
echo "$record_type $record_name" >> $bundle
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user