Skip to content

Commit 23dbfff

Browse files
committed
Bug Fix
1 parent f2ea273 commit 23dbfff

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

lib/shellfire/fatten/bootstrap2.snippet

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,17 @@ _program_fattening_declares()
1313
local IFS=' '
1414
for declares in "$@"
1515
do
16+
local output=true
1617
for alreadyDeclared in $_program_fattening_declaredNames
1718
do
1819
if [ "$alreadyDeclared" = "$declares" ]; then
19-
return 0
20+
output=false
21+
break
2022
fi
2123
done
22-
_program_fattening_declaredNames="$_program_fattening_declaredNames $declares"
24+
if $output; then
25+
_program_fattening_declaredNames="$_program_fattening_declaredNames $declares"
26+
fi
2327
done
2428
}
2529

@@ -75,7 +79,7 @@ _program_fattening_outputVariables()
7579
# _program_path deliberately omitted
7680
_program_fattening_declares \
7781
_program_namespace \
78-
_program_ignore_dependencies \
82+
_program_ignoreDependencies \
7983
_program_entrypoint
8084

8185
_program_fattening_outputVariables \

0 commit comments

Comments
 (0)