Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
nappex committed Feb 18, 2024
1 parent 10aece8 commit 615483d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions xfce_desktop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 615483d

Please sign in to comment.