Skip to content

Commit

Permalink
maciek sq9njl fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Wiktor committed Jun 24, 2024
1 parent 29df2f6 commit b854d65
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion _data/authors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ sq6pog:
## end SQ6POG

## begin SQ9NJL
SQ9NJL:
sq9njl:
name : Maciek
avatar : "/assets/images/zjazd.png"
callsign : SQ9NJL
Expand Down
12 changes: 7 additions & 5 deletions utils/make_author.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ fi
CALLSIGN=$1
NAME=$2
CALLSIGN_UPPER=$(echo "$CALLSIGN" | tr '[:lower:]' '[:upper:]')
CALLSIGN_LOWER=$(echo "$CALLSIGN" | tr '[:upper:]' '[:lower:]')

# Get the directory where the script is located
SCRIPT_DIR=$(dirname "$0")
Expand All @@ -20,20 +21,21 @@ AUTHORS_DIR=$(realpath "$SCRIPT_DIR/../_authors")
DATA_DIR=$(realpath "$SCRIPT_DIR/../_data")

# Perform the sed command with the provided callsign
sed "s/changeme/$CALLSIGN/g" "$SCRIPT_DIR/author_template.md" > "$AUTHORS_DIR/$CALLSIGN.md"
echo "File has been processed and saved as $AUTHORS_DIR/$CALLSIGN.md"
sed "s/changeme/$CALLSIGN/g" "$SCRIPT_DIR/author_template.md" > "$AUTHORS_DIR/$CALLSIGN_LOWER.md"
echo "File has been processed and saved as $AUTHORS_DIR/$CALLSIGN_LOWER.md"

# Define the snippet to be added
SNIPPET=$(cat <<EOF
## begin $CALLSIGN
$CALLSIGN:
## begin $CALLSIGN_UPPER
$CALLSIGN_LOWER:
name : $NAME
avatar : "/assets/images/zjazd.png"
callsign : $CALLSIGN_UPPER
constructor : yes
authorpage : "/authors/$CALLSIGN_LOWER"
## end $CALLSIGN
## end $CALLSIGN_UPPER
EOF
)

Expand Down

0 comments on commit b854d65

Please sign in to comment.