OSDN Git Service

[fix] : Fixed SC2086
authorhayao <hayao@fascode.net>
Sat, 3 Apr 2021 08:13:17 +0000 (17:13 +0900)
committerhayao <hayao@fascode.net>
Sat, 3 Apr 2021 08:13:17 +0000 (17:13 +0900)
aptpac

diff --git a/aptpac b/aptpac
index 1439134..1c0c9f1 100755 (executable)
--- a/aptpac
+++ b/aptpac
@@ -115,7 +115,7 @@ _usage () {
 }
 
 _exit () {
-    exit ${1}
+    exit "${1}"
 }
 
 _version () {
@@ -263,7 +263,7 @@ if [[ "${direct_option}" = false ]]; then
             ;;
         edit-sources)
             if [[ -n "${EDITOR}" ]]; then
-                sudo ${EDITOR} "${PACMAN_CONFIG}"
+                sudo "${EDITOR}" "${PACMAN_CONFIG}"
             else
                 sudo nano "${PACMAN_CONFIG}"
             fi