Fix bug in save_function that causes it to not create missing directory entries before saving function

darcs-hash:20061129140229-ac50b-525f2cff869a066d5c3624880125e37862a9fd3b.gz
This commit is contained in:
axel 2006-11-30 00:02:29 +10:00
parent f64364cced
commit ddc617f80a

View File

@ -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