aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorAlvar C.H. Freude <alvar-freude@users.noreply.github.com>2023-05-03 19:43:41 +0200
committerChocobozzz <chocobozzz@cpy.re>2023-05-04 08:03:36 +0200
commit9c50bf69f1fdcda5fa0b76bada5d9baeb064f3ce (patch)
tree75f5b9dfa4c3818d7491abb2a47fe84f9c3d829f /scripts
parenta1662576112ee33367fcd300131a98a52a0cc62a (diff)
downloadPeerTube-9c50bf69f1fdcda5fa0b76bada5d9baeb064f3ce.tar.gz
PeerTube-9c50bf69f1fdcda5fa0b76bada5d9baeb064f3ce.tar.zst
PeerTube-9c50bf69f1fdcda5fa0b76bada5d9baeb064f3ce.zip
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.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/upgrade.sh2
1 files changed, 1 insertions, 1 deletions
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
79 79
80echo "Differences in configuration files..." 80echo "Differences in configuration files..."
81cd $PEERTUBE_PATH/versions 81cd $PEERTUBE_PATH/versions
82diff -u "$(ls --sort=t | head -2 | tail -1)/config/production.yaml.example" "$(ls --sort=t | head -1)/config/production.yaml.example" 82diff -u "$(ls -t | head -2 | tail -1)/config/production.yaml.example" "$(ls -t | head -1)/config/production.yaml.example"
83 83
84echo "" 84echo ""
85echo "===========================================" 85echo "==========================================="