]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Add compatibility with FreeBSD ls
authorAlvar C.H. Freude <alvar-freude@users.noreply.github.com>
Wed, 3 May 2023 17:43:41 +0000 (19:43 +0200)
committerChocobozzz <chocobozzz@cpy.re>
Thu, 4 May 2023 06:03:36 +0000 (08:03 +0200)
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

index e70576285bef4e30c8049b0b0a28ce6a56703fde..9949ebbc45ebb9a47a5ba352bd87a5747574e082 100755 (executable)
@@ -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 "==========================================="