uclibc-ng: update to 1.0.49
[openadk.git] / scripts / stat
blobbf9136338cc23695e31604e56aa121b07d32e34b
1 #!/usr/bin/env bash
2 # This file is part of the OpenADK project. OpenADK is copyrighted
3 # material, please see the LICENCE file in the top-level directory.
5 declare -a opts
6 while [[ "$1" ]]; do
7 case "$1" in
8 -c) shift ;;
9 -f) shift ;;
10 *) opts+=("$1") ;;
11 esac
12 shift
13 done
15 if /usr/bin/stat -qs .>/dev/null 2>&1; then
16 /usr/bin/stat -f %z "${opts[@]}"
17 else
18 /usr/bin/stat -c %s "${opts[@]}"