Skip to content

Commit

Permalink
Merge pull request #90 from archetipico/main
Browse files Browse the repository at this point in the history
Fix bug
  • Loading branch information
MasterCruelty authored Oct 20, 2021
2 parents 036d277 + 5339654 commit 86ef200
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/emerger.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ if [[ $(wc -l < $ROOT.log) -gt 256 ]]; then
printf "$(tail -n 256 $ROOT.log)\n" > $ROOT.log
fi

# If the script got interrupted, history still exists and has to be cleaned
echo -n "" > $SRC/.hist

ARGC=$#
ARGV=$@

Expand Down Expand Up @@ -50,9 +53,6 @@ else
fi
chmod 775 $SRC/utils/.md5

# If the script got interrupted, history still exists and has to be cleaned
echo -n "" > $SRC/.hist

# Logo
if [[ ! $ARGV =~ "-nl" ]]; then
if [[ $(stty size | awk '{print $2}') -ge 74 ]]; then
Expand Down Expand Up @@ -105,10 +105,11 @@ else
if [[ $(grep -v "[0-9]*:[0-9]*:[0-9]*:[0-9]*" $ROOT.log | wc -l) -gt 0 ]]; then
puts LOGO "\n\nSomething is not working correctly, type \"up -err\" for further informations\a"
fi

reset
echo -ne "${BLUE}eMerger COMPLETED$NORMAL\n"
fi

reset
echo -ne "${BLUE}eMerger COMPLETED$NORMAL\n"
rm $SRC/.hist

exit 0

0 comments on commit 86ef200

Please sign in to comment.