]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
style(shell-completion): remove trailing semicolons
authorEisuke Kawashima <e-kwsm@users.noreply.github.com>
Mon, 14 Jul 2025 10:00:31 +0000 (19:00 +0900)
committerEisuke Kawashima <e-kwsm@users.noreply.github.com>
Mon, 14 Jul 2025 11:24:25 +0000 (20:24 +0900)
13 files changed:
shell-completion/bash/bootctl
shell-completion/bash/busctl
shell-completion/bash/homectl
shell-completion/bash/hostnamectl
shell-completion/bash/journalctl
shell-completion/bash/networkctl
shell-completion/bash/resolvectl
shell-completion/bash/systemctl.in
shell-completion/bash/systemd-analyze
shell-completion/bash/systemd-cgls
shell-completion/bash/systemd-nspawn
shell-completion/zsh/_systemctl.in
shell-completion/zsh/_systemd-run

index 49b013176d7ab2a01fd56e71ae16730938823145..90c7cccb3466ef55dcd5568b3a2ad54291e19046 100644 (file)
@@ -94,7 +94,7 @@ _bootctl() {
             if ! __contains_word "${COMP_WORDS[i]}" ${OPTS[*]} ${VERBS[*]} &&
                     ! __contains_word "${COMP_WORDS[i-1]}" ${OPTS[ARG]}; then
                 name=${COMP_WORDS[i]}
-                break;
+                break
             fi
         done
 
index 97f08f0ab04e6a342a2d7eccaf49d3eeb3e4919d..06eb29ac5f045a356f8357e532c61fe35c944a0c 100644 (file)
@@ -35,7 +35,7 @@ __get_busnames() {
     local mode=$1
     local a b
     busctl $mode list --no-legend --no-pager --full 2>/dev/null |
-        { while read a b; do echo " $a"; done; };
+        { while read a b; do echo " $a"; done; }
 }
 
 __get_objects() {
@@ -43,7 +43,7 @@ __get_objects() {
     local busname=$2
     local a b
     busctl $mode tree --list --no-legend --no-pager $busname 2>/dev/null |
-        { while read a b; do echo " $a"; done; };
+        { while read a b; do echo " $a"; done; }
 }
 
 __get_interfaces() {
@@ -52,7 +52,7 @@ __get_interfaces() {
     local path=$3
     local a b c
     busctl $mode introspect --list --no-legend --no-pager $busname $path 2>/dev/null |
-        { while read a b c; do [[ "$b" == "interface" ]] && echo " $a"; done; };
+        { while read a b c; do [[ "$b" == "interface" ]] && echo " $a"; done; }
 }
 
 __get_members() {
@@ -65,7 +65,7 @@ __get_members() {
     local a b c d e
     busctl $mode introspect --list --no-legend --no-pager $busname $path $interface 2>/dev/null |
         sed -e 's/^\.//' |
-        { while read a b c d e; do [[ "$b" == "$type" && ( -z $flags || "$e" == "$flags" ) ]] && echo " $a"; done; };
+        { while read a b c d e; do [[ "$b" == "$type" && ( -z $flags || "$e" == "$flags" ) ]] && echo " $a"; done; }
 }
 
 __get_signature() {
@@ -76,7 +76,7 @@ __get_signature() {
     local member=$5
     local a b c d
     busctl $mode introspect --list --no-legend --no-pager $busname $path $interface 2>/dev/null |
-        sed -e 's/^\.//' | { while read a b c d; do [[ "$a" == "$member" && "$c" != '-' ]] && echo " \"$c\""; done; };
+        sed -e 's/^\.//' | { while read a b c d; do [[ "$a" == "$member" && "$c" != '-' ]] && echo " \"$c\""; done; }
 }
 
 _busctl() {
index 2fed45403ffe60e482244997d8fa5c07130668c3..6d7e23ef7184b6919e7ed3783b4850657f657728 100644 (file)
@@ -27,7 +27,7 @@ __contains_word () {
 __get_machines() {
     local a b
     machinectl list --full --no-legend --no-pager 2>/dev/null |
-        { while read a b; do echo " $a"; done; };
+        { while read a b; do echo " $a"; done; }
 }
 
 __get_homes() {
index d8256a9fed48d3a594966c7f4d2ac8d2538f0583..8d1922eb2e0806c9d69335e142988c5b57dfbb56 100644 (file)
@@ -29,7 +29,7 @@ __contains_word () {
 __get_machines() {
     local a b
     machinectl list --full --no-legend --no-pager 2>/dev/null |
-        { while read a b; do echo " $a"; done; };
+        { while read a b; do echo " $a"; done; }
 }
 
 _hostnamectl() {
index 762faf6f4da17ff6858d94d1d232ba2c8bd946be..1892e6f5f54a6025017ce775ce41dc9892abfea0 100644 (file)
@@ -61,7 +61,7 @@ _journalctl() {
     if __contains_word "$prev" '>' '>>' '&>'; then
         compopt -o filenames
         COMPREPLY=( $(compgen -f -- "$cur") )
-        return 0;
+        return 0
     fi
 
     if __contains_word "$prev" ${OPTS[ARG]} ${OPTS[ARGUNKNOWN]}; then
index 04f54e0e928635a05639ae9b7353407f7fd44dbc..41f1b573cc9068f8c198afee56366ad03374732b 100644 (file)
@@ -26,7 +26,7 @@ __contains_word () {
 }
 
 __get_links() {
-    networkctl list --no-legend --no-pager --all --full | { while read -r a b c; do echo " $b"; done; };
+    networkctl list --no-legend --no-pager --all --full | { while read -r a b c; do echo " $b"; done; }
 }
 
 __get_links_with_prefix() {
index 5f2102ccbaa96eadc36e75a6cc620ceb87365fa9..b561a72301a0d29bd394679138c32d69bd34e851 100644 (file)
@@ -107,7 +107,7 @@ _resolvectl() {
             if __contains_word "${COMP_WORDS[i]}" ${ARGS[FAMILY]} &&
                     ! __contains_word "${COMP_WORDS[i-1]}" ${OPTS[ARG]}; then
                 name=${COMP_WORDS[i]}
-                break;
+                break
             fi
         done
         if [[ -z $name ]]; then
@@ -122,7 +122,7 @@ _resolvectl() {
             if __contains_word "${COMP_WORDS[i]}" $interfaces &&
                     ! __contains_word "${COMP_WORDS[i-1]}" ${OPTS[ARG]}; then
                 name=${COMP_WORDS[i]}
-                break;
+                break
             fi
         done
 
@@ -135,7 +135,7 @@ _resolvectl() {
                 if __contains_word "${COMP_WORDS[i]}" ${ARGS[RESOLVE]} &&
                         ! __contains_word "${COMP_WORDS[i-1]}" ${OPTS[ARG]}; then
                     name=${COMP_WORDS[i]}
-                    break;
+                    break
                 fi
             done
 
@@ -151,7 +151,7 @@ _resolvectl() {
                 if __contains_word "${COMP_WORDS[i]}" ${ARGS[BOOLEAN]} &&
                         ! __contains_word "${COMP_WORDS[i-1]}" ${OPTS[ARG]}; then
                     name=${COMP_WORDS[i]}
-                    break;
+                    break
                 fi
             done
 
@@ -167,7 +167,7 @@ _resolvectl() {
                 if __contains_word "${COMP_WORDS[i]}" ${ARGS[DNSSEC]} &&
                         ! __contains_word "${COMP_WORDS[i-1]}" ${OPTS[ARG]}; then
                     name=${COMP_WORDS[i]}
-                    break;
+                    break
                 fi
             done
 
@@ -183,7 +183,7 @@ _resolvectl() {
                 if __contains_word "${COMP_WORDS[i]}" ${ARGS[DNSOVERTLS]} &&
                         ! __contains_word "${COMP_WORDS[i-1]}" ${OPTS[ARG]}; then
                     name=${COMP_WORDS[i]}
-                    break;
+                    break
                 fi
             done
 
index c1231653b6f8bb0f3057163b3863d48677d9f63d..1e01521adc38697adbb9f2c3016f41251f6f4a20 100644 (file)
@@ -291,13 +291,13 @@ _systemctl () {
         compopt -o filenames
 
     elif __contains_word "$verb" ${VERBS[DISABLED_UNITS]}; then
-        comps=$( __get_disabled_units $mode "$cur";
+        comps=$( __get_disabled_units $mode "$cur"
                  __get_template_names $mode "$cur")
         compopt -o filenames
 
     elif __contains_word "$verb" ${VERBS[REENABLABLE_UNITS]}; then
-        comps=$( __get_disabled_units $mode "$cur";
-                 __get_enabled_units $mode "$cur";
+        comps=$( __get_disabled_units $mode "$cur"
+                 __get_enabled_units $mode "$cur"
                  __get_template_names $mode "$cur")
         compopt -o filenames
 
index 060bc51d81010118b0dfd0b66c3f67186f3a010e..d9c2ccd376c69a71b9e1e394802a4b90311a9d99 100644 (file)
@@ -163,7 +163,7 @@ _systemd_analyze() {
         if [[ $cur = -* ]]; then
             comps='--help --version --system --user --global --man=no --generators=yes --root --image --recursive-errors=no --recursive-errors=yes --recursive-errors=one'
         else
-            comps=$( compgen -A file -- "$cur";
+            comps=$( compgen -A file -- "$cur"
                      __get_units_all $mode )
             compopt -o filenames
         fi
index b466a9d882027934c03a0387626175f448c73133..76f3ee3ab721d794ce75c209828da57e81c67cb6 100644 (file)
@@ -36,7 +36,7 @@ __get_units_have_cgroup() {
         while read -r a b c d; do
             [[ $c == "active" && ${a##*.} =~ (service|socket|mount|swap|slice|scope) ]] && echo " $a"
         done
-    };
+    }
 }
 
 _systemd_cgls() {
index 070d842b18cd29eb9216614ba3b49fce37a9622f..cff13b9e824b1b89ee257a688254d0b4f5d204ae 100644 (file)
@@ -26,12 +26,12 @@ __contains_word() {
 
 __get_users() {
     local a b
-    loginctl list-users --no-legend --no-pager | { while read a b; do echo " $b"; done; };
+    loginctl list-users --no-legend --no-pager | { while read a b; do echo " $b"; done; }
 }
 
 __get_slices() {
     local a b
-    systemctl list-units -t slice --no-legend --no-pager --plain | { while read a b; do echo " $a"; done; };
+    systemctl list-units -t slice --no-legend --no-pager --plain | { while read a b; do echo " $a"; done; }
 }
 
 __get_machines() {
@@ -43,7 +43,7 @@ __get_machines() {
 
 __get_env() {
     local a
-    env | { while read a; do echo " ${a%%=*}"; done; };
+    env | { while read a; do echo " ${a%%=*}"; done; }
 }
 
 __get_interfaces(){
index bfd09fa7bf6b5a98153d76c7847e4bce2c2a4f92..e811803d208995f7d8133900ad12ea212c0fdbc8 100644 (file)
@@ -162,7 +162,7 @@ __systemctl()
 (( $+functions[_systemctl_all_units] )) ||
     _systemctl_all_units()
 {
-    if _cache_invalid SYS_ALL_UNITS$_sys_service_mgr || ! _retrieve_cache SYS_ALL_UNITS$_sys_service_mgr;
+    if _cache_invalid SYS_ALL_UNITS$_sys_service_mgr || ! _retrieve_cache SYS_ALL_UNITS$_sys_service_mgr
     then
         _sys_all_units=( ${${(f)"$(__systemctl list-units --all)"}%% *} )
         _store_cache SYS_ALL_UNITS$_sys_service_mgr _sys_all_units
@@ -173,9 +173,9 @@ __systemctl()
 (( $+functions[_systemctl_really_all_units] )) ||
     _systemctl_really_all_units()
 {
-    local -a all_unit_files;
-    local -a really_all_units;
-    if _cache_invalid SYS_REALLY_ALL_UNITS$_sys_service_mgr || ! _retrieve_cache SYS_REALLY_ALL_UNITS$_sys_service_mgr;
+    local -a all_unit_files
+    local -a really_all_units
+    if _cache_invalid SYS_REALLY_ALL_UNITS$_sys_service_mgr || ! _retrieve_cache SYS_REALLY_ALL_UNITS$_sys_service_mgr
     then
         all_unit_files=( ${${(f)"$(__systemctl list-unit-files)"}%% *} )
         _systemctl_all_units
index 6e284556f06d55c9c8b585661de73f78e84a3b8a..af867764380d8aac8b1803e61e683cba4ca5296e 100644 (file)
@@ -11,7 +11,7 @@ __systemctl() {
 (( $+functions[__systemd-run_get_slices] )) ||
     __systemd-run_get_slices () {
         __systemctl list-units --all -t slice \
-            | { while read -r a b; do echo $a; done; };
+            | { while read -r a b; do echo $a; done; }
     }
 
 (( $+functions[__systemd-run_slices] )) ||