From 9c50bf69f1fdcda5fa0b76bada5d9baeb064f3ce Mon Sep 17 00:00:00 2001 From: "Alvar C.H. Freude" Date: Wed, 3 May 2023 19:43:41 +0200 Subject: [PATCH] Add compatibility with FreeBSD ls The ls command of FreebSD does not understand the --search=time parameter for the ls command. "ls -t" is equivalent and behaves on Linux in the same way. --- scripts/upgrade.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade.sh b/scripts/upgrade.sh index e70576285..9949ebbc4 100755 --- a/scripts/upgrade.sh +++ b/scripts/upgrade.sh @@ -79,7 +79,7 @@ cp $PEERTUBE_PATH/peertube-latest/config/default.yaml $PEERTUBE_PATH/config/defa echo "Differences in configuration files..." cd $PEERTUBE_PATH/versions -diff -u "$(ls --sort=t | head -2 | tail -1)/config/production.yaml.example" "$(ls --sort=t | head -1)/config/production.yaml.example" +diff -u "$(ls -t | head -2 | tail -1)/config/production.yaml.example" "$(ls -t | head -1)/config/production.yaml.example" echo "" echo "==========================================="