This commit is contained in:
2026-10-02 21:40:40 +02:00
parent 468674c4ea
commit 71b5ea79be
7 changed files with 85 additions and 84 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
set -e
LINE=$1
FILE=$2
DETECT=${3:-$LINE}
if [[ -z $(grep "$DETECT" "$FILE") ]]; then
echo "Line not found in $FILE"
echo -n "$LINE" >> "$FILE"
else
echo "Fragment already exists in $FILE"
fi