mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-22 12:03:58 +08:00
27 lines
442 B
Fish
Executable File
27 lines
442 B
Fish
Executable File
#!/usr/bin/env fish
|
|
|
|
# TODO: This is only a basic draft.
|
|
|
|
set -l return_code 0
|
|
|
|
omf list | grep apt 2>&1 >/dev/null
|
|
set -l apt_installed_previously $status
|
|
|
|
if test $apt_installed_previously -eq 0
|
|
omf remove apt
|
|
end
|
|
|
|
set commands "omf help" "omf doctor" "omf install apt"
|
|
for cmd in $commands
|
|
echo \$ $cmd
|
|
if not eval $cmd
|
|
set return_code 1
|
|
end
|
|
end
|
|
|
|
if test $apt_installed_previously -ne 0
|
|
omf remove apt
|
|
end
|
|
|
|
exit $return_code
|