Skip to content

Instantly share code, notes, and snippets.

@FranklyFuzzy
Created June 17, 2024 18:24
Show Gist options
  • Save FranklyFuzzy/fa16e0753d8160423257af8352542fbf to your computer and use it in GitHub Desktop.
Save FranklyFuzzy/fa16e0753d8160423257af8352542fbf to your computer and use it in GitHub Desktop.
Script parameters for homepage bookmarks to add to services yaml
#!/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."
@FranklyFuzzy
Copy link
Author

output is formatted to cp/paste into services.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment