Skip to content

Commit 6ece844

Browse files
authored
fix issues depends_on() and dpkg_depends_on()
1 parent 9f993d0 commit 6ece844

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugins/envsetup

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ list_parser() {
9191
depends_on() {
9292
local packages="$1"
9393
export x
94+
95+
x=0
9496
for package in ${packages}; do
9597
if ! command -v "${package}" &>/dev/null; then
9698
warn "Missing package: ${package}"
@@ -106,6 +108,8 @@ depends_on() {
106108
dpkg_depends_on() {
107109
local packages="$1"
108110
export x
111+
112+
x=0
109113
for package in ${packages}; do
110114
if ! dpkg -s "${package}" &>/dev/null; then
111115
warn "Missing package: ${package}"

0 commit comments

Comments
 (0)