Fix #303
This commit is contained in:
Derek Willian Stavis 2016-04-19 11:49:07 -03:00
commit a300d1ba65
2 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,10 @@
function omf.bundle.add -a type name_or_url
set -l bundle $OMF_CONFIG/bundle
if test -L $OMF_CONFIG/bundle
set bundle (readlink $OMF_CONFIG/bundle)
end
set -l record "$type $name_or_url"
if test -f $bundle

View File

@ -1,5 +1,9 @@
function omf.bundle.remove
set bundle $OMF_CONFIG/bundle
set -l bundle $OMF_CONFIG/bundle
if test -L $OMF_CONFIG/bundle
set bundle (readlink $OMF_CONFIG/bundle)
end
if test -f $bundle
set type $argv[1]