diff --git a/lib/functions.sh b/lib/functions.sh index 6a2d44f..7b193ec 100644 --- a/lib/functions.sh +++ b/lib/functions.sh @@ -8,7 +8,7 @@ function idem_apt_install() { if ! (/usr/bin/dpkg-query --status "$i" >/dev/null 2>&1); then sudo apt install -y "$i" elif $VERBOSE; then - echo "${PREFIX:=}apt package <$i> already installed!" + echo "apt package <$i> already installed!" fi done } diff --git a/tools/append_or_replace b/tools/append_or_replace index 5fc5fe6..fe46f0d 100755 --- a/tools/append_or_replace +++ b/tools/append_or_replace @@ -14,7 +14,7 @@ STRING=$2 FILE=$3 if ! grep -q "$REGEX" "$FILE"; then - echo "$STRING" >>$FILE + PREFIX="" echo "$STRING" >>$FILE echo appended else sed -i "s|$REGEX|$STRING|g" $FILE