mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-02-06 23:53:02 +08:00
parent
6f35c1b5eb
commit
777186f897
|
@ -10,7 +10,7 @@ function omf.bundle.remove
|
|||
set name $argv[2]
|
||||
set bundle_contents (cat $bundle | sort -u)
|
||||
|
||||
rm -f $bundle
|
||||
command rm -f $bundle
|
||||
|
||||
for record in $bundle_contents
|
||||
set record_type (echo $record | cut -d' ' -f1)
|
||||
|
|
|
@ -20,7 +20,7 @@ function omf.packages.remove -a pkg
|
|||
source $path/uninstall.fish 2> /dev/null;
|
||||
and emit uninstall_$pkg
|
||||
|
||||
if rm -rf $path
|
||||
if command rm -rf $path
|
||||
omf.bundle.remove "package" $pkg
|
||||
return 0
|
||||
else
|
||||
|
@ -36,7 +36,7 @@ function omf.packages.remove -a pkg
|
|||
test $pkg = (cat $OMF_CONFIG/theme);
|
||||
and echo default > $OMF_CONFIG/theme
|
||||
|
||||
if rm -rf $path
|
||||
if command rm -rf $path
|
||||
omf.bundle.remove "theme" $pkg
|
||||
return 0
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user