1
0
Fork 0

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.
This commit is contained in:
Alvar C.H. Freude 2023-05-03 19:43:41 +02:00 committed by Chocobozzz
parent a166257611
commit 9c50bf69f1

View file

@ -79,7 +79,7 @@ cp $PEERTUBE_PATH/peertube-latest/config/default.yaml $PEERTUBE_PATH/config/defa
echo "Differences in configuration files..." echo "Differences in configuration files..."
cd $PEERTUBE_PATH/versions 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 ""
echo "===========================================" echo "==========================================="