refactor: cleaner python project
This commit is contained in:
Executable
+14
@@ -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
|
||||
Executable
+14
@@ -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 "$LINE" >> "$FILE"
|
||||
else
|
||||
echo "Line already exists in $FILE"
|
||||
fi
|
||||
Reference in New Issue
Block a user