Skip to content

Commit

Permalink
Merge branch 'bugfix/stack' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
SkypLabs committed Nov 19, 2019
2 parents e1426e6 + 238784c commit dd58c80
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/bsfl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1014,10 +1014,10 @@ str_replace_in_file() {
__stack_push_tmp() {
local TMP="$1"

if has_value "$__TMP_STACK"; then
__TMP_STACK="$TMP"
if has_value __TMP_STACK; then
__TMP_STACK="${__TMP_STACK}"$'\n'"${TMP}"
else
__TMP_STACK="$__TMP_STACK"$'\n'"$TMP"
__TMP_STACK="$TMP"
fi
}

Expand All @@ -1028,10 +1028,10 @@ __stack_push_tmp() {
stack_push() {
line="$1"

if has_value "$__STACK"; then
__STACK="$line"
if has_value __STACK; then
__STACK="${line}"$'\n'"${__STACK}"
else
__STACK="$line"$'\n'"$__STACK"
__STACK="$line"
fi
}

Expand Down

0 comments on commit dd58c80

Please sign in to comment.