Просмотр исходного кода

Merge branch 'master' of git+ssh://openadk.org/git/openadk

Waldemar Brodkorb 13 лет назад
Родитель
Сommit
d9a3994a44
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      scripts/install.sh

+ 3 - 3
scripts/install.sh

@@ -201,10 +201,10 @@ if (( cyls < (cfgfs + 2) )); then
 	exit 1
 fi
 
-if stat --help >/dev/null 2>&1; then
-	statcmd='stat -c %s'	# GNU stat
-else
+if stat -qs .>/dev/null 2>&1; then
 	statcmd='stat -f %z'	# BSD stat (or so we assume)
+else
+	statcmd='stat -c %s'	# GNU stat
 fi
 
 if ! T=$(mktemp -d /tmp/openadk.XXXXXXXXXX); then