use bashrc for start

This commit is contained in:
2026-08-28 17:44:04 +02:00
parent 2a4d25b1fc
commit 241bb704ef
4 changed files with 21 additions and 31 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
set -v
set -e
LINE=$1
FILE=$2
DETECT=${3:-$LINE}
if [[ -z $(grep "$DETECT" "$FILE") ]]; then
echo "Line not found in $FILE"
echo "$LINE" >> "$FILE"
else
echo "Line already exists in $FILE"
fi