Skip to content

Commit

Permalink
Merge pull request #305 from andrewrynhard/fix_#303
Browse files Browse the repository at this point in the history
Fix #303
  • Loading branch information
derekstavis committed Apr 19, 2016
2 parents 4fab285 + 1853f30 commit a300d1b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions pkg/omf/functions/bundle/omf.bundle.add.fish
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 5 additions & 1 deletion pkg/omf/functions/bundle/omf.bundle.remove.fish
Original file line number Diff line number Diff line change
@@ -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]
Expand Down

0 comments on commit a300d1b

Please sign in to comment.