Created
June 17, 2024 18:24
-
-
Save FranklyFuzzy/fa16e0753d8160423257af8352542fbf to your computer and use it in GitHub Desktop.
Script parameters for homepage bookmarks to add to services yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Prompt user for input | |
echo "Please enter the values for the variables:" | |
read -p "Name: " name | |
read -p "Icon: " icon | |
read -p "Href: " href | |
read -p "Description: " description | |
# Specify the file to echo the variables into | |
output_file="service_entry.txt" | |
# Echo the variables into the file with exact formatting | |
echo " - $name:" > "$output_file" | |
echo " icon: $icon" >> "$output_file" | |
echo " href: $href" >> "$output_file" | |
echo " description: $description" >> "$output_file" | |
echo "Variables have been written to $output_file." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
output is formatted to cp/paste into services.yaml