Skip to content

Commit b4ec984

Browse files
committed
build
1 parent a340d35 commit b4ec984

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

usr/share/usability-misc/dist-installer-cli-standalone

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ fi
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
########################

0 commit comments

Comments
 (0)