소스 검색

Change command order

master
Arun Prakash Jana 5 년 전
부모
커밋
38de6efd48
No known key found for this signature in database 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

||||||
x
 
000:0
불러오는 중...
취소
저장