summaryrefslogtreecommitdiff
path: root/scripts/cpio
blob: 1c481221e77d16c007bb295d6de0065c6ffcfcc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

os=$(uname)
case $os in
	NetBSD|MirBSD)
		quiet=""
		;;
	*)
		quiet="--quiet"
		;;
esac
if [ -x /usr/bin/cpio ];then
	/usr/bin/cpio $quiet "$@"
else
	/bin/cpio $quiet "$@"
fi