Skip to content

Commit

Permalink
Fix bug in save_function that causes it to not create missing directo…
Browse files Browse the repository at this point in the history
…ry entries before saving function

darcs-hash:20061129140229-ac50b-525f2cff869a066d5c3624880125e37862a9fd3b.gz
  • Loading branch information
liljencrantz committed Nov 29, 2006
1 parent f64364c commit ddc617f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/functions/save_function.fish
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function save_function -d (N_ "Save the current definition of all specified func
end

for i in $configdir $configdir/fish $configdir/fish/functions
if not test -d
if not test -d $i
if not builtin mkdir $configdir >/dev/null
printf (_ "%s: Could not create configuration directory\n") save_function
return 1
Expand Down

0 comments on commit ddc617f

Please sign in to comment.