Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b82f0d60 authored by thilo's avatar thilo
Browse files

Update bootstrap-commons.sh: Removed debug output

parent c6cc2185
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -5,11 +5,8 @@ function getRandomString {

function replaceTokensWithRandomStrings {
        INPUT="$1"
        echo $INPUT
        TOBEREPLACED=$(echo "$INPUT" | grep -o '@@@generate@@@:[0-9]\+@')
        echo $TOBEREPLACED
        REPLACEMENT_LENGTH=$(echo "$TOBEREPLACED" | awk -F: '{ print $NF }' | sed 's/@$//g')
        echo "$REPLACEMENT_LENGTH"
        RANDOMPART=$(getRandomString $REPLACEMENT_LENGTH)
        echo "$INPUT" | sed "s/$TOBEREPLACED/$RANDOMPART/g"
}
 No newline at end of file