setup script
This commit is contained in:
parent
3139d7fd40
commit
033475fd14
22
setup.sh
Normal file
22
setup.sh
Normal file
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Get the current directory name
|
||||
CURRENT_DIR_NAME=$(basename "$PWD")
|
||||
|
||||
# Define the files to be updated
|
||||
FILES=("main.go" "go.mod" "wails.json")
|
||||
|
||||
# String to be replaced
|
||||
OLD_STRING="wails-template"
|
||||
|
||||
# Loop through the files and replace occurrences of the old string
|
||||
for file in "${FILES[@]}"; do
|
||||
if [[ -f "$file" ]]; then
|
||||
sed -i "s/${OLD_STRING}/${CURRENT_DIR_NAME}/g" "$file"
|
||||
echo "Updated: $file"
|
||||
else
|
||||
echo "File not found: $file"
|
||||
fi
|
||||
done
|
||||
|
||||
echo "You are rady to gooooo"
|
Loading…
x
Reference in New Issue
Block a user