@ -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
}
@ -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