diff --git a/xfce_desktop.sh b/xfce_desktop.sh index 4090b5a..c45adba 100644 --- a/xfce_desktop.sh +++ b/xfce_desktop.sh @@ -15,9 +15,8 @@ if test ! -f $LOCAL_REPO_CONFIG_FILE then mkdir -p $(dirname $LOCAL_REPO_CONFIG_FILE) - echo "FreeBSD: {" >$LOCAL_REPO_CONFIG_FILE - sed 's/quarterly",/latest"/' >>$LOCAL_REPO_CONFIG_FILE - echo "}" >>$LOCAL_REPO_CONFIG_FILE + latest_url=$(grep -F "quarterly" /etc/pkg/FreeBSD.conf | sed 's/quarterly",/latest"/') + echo "FreeBSD: { $latest_url }" >$LOCAL_REPO_CONFIG_FILE else echo Backup and remove your configuration file \'"$LOCAL_REPO_CONFIG_FILE"\' echo and run this script again.