File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 258258
259259# shellcheck source=../../../helper-scripts/usr/libexec/helper-scripts/package_installed_check.sh
260260# #### BEGIN pasted by build-dist-installer-cli from file /usr/libexec/helper-scripts/package_installed_check.sh
261- #! /bin/bash
261+ #! /bin/sh
262262
263263# # Copyright (C) 2025 - 2025 ENCRYPTED SUPPORT LLC <[email protected] >264264# # See the file COPYING for copying conditions.
@@ -278,6 +278,7 @@ pkg_installed() {
278278 # # install ok installed
279279
280280 requested_action=$( printf ' %s' " $dpkg_query_output " | awk ' {print $1}' )
281+ # shellcheck disable=SC2034
281282 status=$( printf ' %s' " $dpkg_query_output " | awk ' {print $2}' )
282283 # shellcheck disable=SC2034
283284 error_state=$( printf ' %s' " $dpkg_query_output " | awk ' {print $3}' )
@@ -290,16 +291,6 @@ pkg_installed() {
290291 true " $0 : INFO: $package_name is not installed, ok."
291292 return 1
292293}
293-
294- if [ " ${BASH_SOURCE} " = " ${0} " ]; then
295- # # Script was executed.
296- # # This is useful to allow non-Bash shell scripts to use this functionality.
297- set -o errexit
298- set -o nounset
299- set -o errtrace
300- set -o pipefail
301- pkg_installed " $1 "
302- fi
303294# #### END pasted by build-dist-installer-cli from file /usr/libexec/helper-scripts/package_installed_check.sh
304295
305296# #######################
You can’t perform that action at this time.
0 commit comments