mirror of
https://github.com/bigbeartechworld/big-bear-scripts.git
synced 2026-07-22 05:31:58 -04:00
✨ fix: update config file extension from .yml to .yaml
Change default config file path and download URL to use .yaml extension instead of .yml. This ensures consistency with the upstream file and prevents potential file not found errors.
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Ask the user for the desired config location
|
||||
read -p "Enter the location to save the config (default: /DATA/AppData/big-bear-file-browser-quantum/data/config.yml): " location
|
||||
read -p "Enter the location to save the config (default: /DATA/AppData/big-bear-file-browser-quantum/data/config.yaml): " location
|
||||
|
||||
# If the user doesn't provide a location, default to the specified path
|
||||
if [ -z "$location" ]; then
|
||||
location="/DATA/AppData/big-bear-file-browser-quantum/config.yml"
|
||||
location="/DATA/AppData/big-bear-file-browser-quantum/config.yaml"
|
||||
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/refs/heads/master/Apps/file-browser-quantum/data/config.yml" -o "$location"
|
||||
curl -L "https://raw.githubusercontent.com/bigbeartechworld/big-bear-casaos/refs/heads/master/Apps/file-browser-quantum/data/config.yaml" -o "$location"
|
||||
|
||||
# Confirm to the user
|
||||
echo "Config saved to $location"
|
||||
|
||||
Reference in New Issue
Block a user