mirror of
https://github.com/bigbeartechworld/big-bear-scripts.git
synced 2026-07-31 09:18:40 -04:00
Update config file location in run.sh script for Romm
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Ask the user for the desired config location
|
||||
read -p "Enter the location to save the config (default: /DATA/AppData/big-bear-romm/config.yml): " location
|
||||
read -p "Enter the location to save the config (default: /DATA/AppData/big-bear-romm/config/config.yml): " location
|
||||
|
||||
# If the user doesn't provide a location, default to the specified path
|
||||
if [ -z "$location" ]; then
|
||||
location="/DATA/AppData/big-bear-romm/config.yml"
|
||||
location="/DATA/AppData/big-bear-romm/config/config.yml"
|
||||
fi
|
||||
|
||||
# Check if the config file already exists
|
||||
@@ -21,7 +21,7 @@ fi
|
||||
mkdir -p "$(dirname "$location")"
|
||||
|
||||
# Download the file from the given URL and save it to the specified location
|
||||
curl -L "https://raw.githubusercontent.com/bigbeartechworld/big-bear-casaos/master/Apps/romm/config.yml" -o "$location"
|
||||
curl -L "https://raw.githubusercontent.com/bigbeartechworld/big-bear-casaos/master/Apps/Romm/config.yml" -o "$location"
|
||||
|
||||
# Confirm to the user
|
||||
echo "Config saved to $location"
|
||||
|
||||
Reference in New Issue
Block a user