Download this file
24 lines (19 with data), 341 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 | #
# General purpose functions.
#
error() {
echo >&2 "${0##*/}: ERROR: $*"
exit 1
}
info() {
echo "${0##*/}: INFO: $*"
}
#nano_env_vars() {
# grep '^export' "$AVATAR_ROOT/build/nano_env" | \
# sed -e 's/export //g' | tr '\012' ' '
#}
requires_root() {
if [ $(id -ru) -ne 0 ]; then
error "You must be root when running $0"
fi
}
|
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.