File: functions.sh

package info (click to toggle)
squashfs-tools 1%3A4.6.1-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,600 kB
  • sloc: ansic: 26,158; sh: 501; makefile: 218
file content (18 lines) | stat: -rwxr-xr-x 356 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

# Sanity check, check that the non-builtin echo exists and is in PATH
if ! which echo > /dev/null 2>&1; then
	echo "$0: This script needs the non-builtin echo, which is not in your PATH." >&2
	echo "$0: Fix PATH or install before running this script!" >&2
	exit 1
fi

ECHO=$(which echo)

print() {
	${ECHO} "$@"
}

error() {
	${ECHO} "$@" >&2
}