File: process_check.sh

package info (click to toggle)
libmojo-ioloop-readwriteprocess-perl 1.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 540 kB
  • sloc: perl: 4,655; sh: 101; makefile: 2
file content (21 lines) | stat: -rwxr-xr-x 265 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

cleanup() {
    echo "TEST exiting"
}

trap cleanup EXIT

(>&2 echo "TEST error print")
echo "TEST normal print"

while [[ -z "$TESTVAR" ]]
do
	read -p "Enter something: " TESTVAR
done

echo "you entered $TESTVAR"

[[ -n "$@" ]] && echo "$@"

exit 100