Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison sbin/fjail @ 700:31953a5653e9
fjail: Remove unneeded variable "operations"
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Tue, 01 Oct 2024 20:06:27 +0200 |
| parents | 4243b087fc2d |
| children | 18fe9674a0e5 |
comparison
equal
deleted
inserted
replaced
| 699:4243b087fc2d | 700:31953a5653e9 |
|---|---|
| 600 | 600 |
| 601 #: | 601 #: |
| 602 #: Implement the "freebsd-update" command | 602 #: Implement the "freebsd-update" command |
| 603 #: | 603 #: |
| 604 command_freebsd_update() { | 604 command_freebsd_update() { |
| 605 local directory operations | 605 local directory # + operations ... |
| 606 | 606 |
| 607 local opt_currently_running | 607 local opt_currently_running |
| 608 | 608 |
| 609 opt_currently_running="" | 609 opt_currently_running="" |
| 610 while getopts "c:" _opt ; do | 610 while getopts "c:" _opt ; do |
| 624 | 624 |
| 625 [ -z "${directory}" ] && { echo "ERROR: no directory given" 1>&2; return 2; } | 625 [ -z "${directory}" ] && { echo "ERROR: no directory given" 1>&2; return 2; } |
| 626 [ -d "${directory}" ] || { echo "ERROR: directory \`${directory}' does not exist" 1>&2; return 1; } | 626 [ -d "${directory}" ] || { echo "ERROR: directory \`${directory}' does not exist" 1>&2; return 1; } |
| 627 | 627 |
| 628 shift | 628 shift |
| 629 operations="$*" | |
| 630 | 629 |
| 631 if _has_same_userland_version "${directory}" "${opt_currently_running}" ; then | 630 if _has_same_userland_version "${directory}" "${opt_currently_running}" ; then |
| 632 if [ -n "${opt_currently_running}" ]; then | 631 if [ -n "${opt_currently_running}" ]; then |
| 633 freebsd-update -b "${directory}" --currently-running "${opt_currently_running}" "$@" | 632 freebsd-update -b "${directory}" --currently-running "${opt_currently_running}" "$@" |
| 634 else | 633 else |
