浏览代码

Change command order

master
Arun Prakash Jana 4 年前
父节点
当前提交
38de6efd48
找不到此签名对应的密钥 GPG 密钥 ID: A75979F35C080412
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      plugins/suedit

+ 3
- 3
plugins/suedit 查看文件

@@ -12,10 +12,10 @@ is_cmd_exists () {
echo $?
}

if [ "$(is_cmd_exists sudoedit)" -eq "0" ]; then
sudoedit "$1"
elif [ "$(is_cmd_exists sudo)" -eq "0" ]; then
if [ "$(is_cmd_exists sudo)" -eq "0" ]; then
sudo "$EDITOR" "$1"
elif [ "$(is_cmd_exists sudoedit)" -eq "0" ]; then
sudoedit "$1"
elif [ "$(is_cmd_exists doas)" -eq "0" ]; then
doas "$EDITOR" "$1"
fi

正在加载...
取消
保存