mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-22 13:48:16 +08:00
Use -L instead of -h
This commit is contained in:
parent
9b3a2586f2
commit
a5654cfec3
|
@ -1,5 +1,5 @@
|
|||
function omf.bundle.add -a type name_or_url
|
||||
if test -h $OMF_CONFIG/bundle
|
||||
if test -L $OMF_CONFIG/bundle
|
||||
set bundle (readlink $OMF_CONFIG/bundle)
|
||||
else
|
||||
set bundle $OMF_CONFIG/bundle
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
function omf.bundle.remove
|
||||
if test -h $OMF_CONFIG/bundle
|
||||
if test -L $OMF_CONFIG/bundle
|
||||
set bundle (readlink $OMF_CONFIG/bundle)
|
||||
else
|
||||
set bundle $OMF_CONFIG/bundle
|
||||
|
|
Loading…
Reference in New Issue
Block a user