diff options
author | Alvar C.H. Freude <alvar-freude@users.noreply.github.com> | 2023-05-03 19:43:41 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2023-05-04 08:03:36 +0200 |
commit | 9c50bf69f1fdcda5fa0b76bada5d9baeb064f3ce (patch) | |
tree | 75f5b9dfa4c3818d7491abb2a47fe84f9c3d829f | |
parent | a1662576112ee33367fcd300131a98a52a0cc62a (diff) | |
download | PeerTube-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.
-rwxr-xr-x | scripts/upgrade.sh | 2 |
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 | ||
80 | echo "Differences in configuration files..." | 80 | echo "Differences in configuration files..." |
81 | cd $PEERTUBE_PATH/versions | 81 | cd $PEERTUBE_PATH/versions |
82 | diff -u "$(ls --sort=t | head -2 | tail -1)/config/production.yaml.example" "$(ls --sort=t | head -1)/config/production.yaml.example" | 82 | diff -u "$(ls -t | head -2 | tail -1)/config/production.yaml.example" "$(ls -t | head -1)/config/production.yaml.example" |
83 | 83 | ||
84 | echo "" | 84 | echo "" |
85 | echo "===========================================" | 85 | echo "===========================================" |