-
Notifications
You must be signed in to change notification settings - Fork 1
/
test-temp.sh
29 lines (29 loc) · 700 Bytes
/
test-temp.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
## test-temp
## version 0.0.1 - initial
##################################################
test-temp() {
test "${temp}" && {
temp=_${temp}
} || {
declare -x temp
temp=$( mktemp )
}
declare -p temp 1>&2
test ! $(( ${RANDOM} % 5 )) -eq 0 || { true ; return ; }
bash ${0}
}
##################################################
if [ ${#} -eq 0 ]
then
true
else
exit 1 # wrong args
fi
##################################################
test-temp
##################################################
## generated by create-stub2.sh v0.1.2
## on Tue, 16 Jul 2019 15:05:34 +0900
## see <https://github.com/temptemp3/sh2>
##################################################