Added RUN_DIR subset
This commit is contained in:
parent
1ab6042a62
commit
0e2189c441
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
## MERGE 2018100204
|
## MERGE 2018100801
|
||||||
|
|
||||||
## Merges ofunctions.sh and n_program.sh into program.sh
|
## Merges ofunctions.sh and n_program.sh into program.sh
|
||||||
## Adds installer
|
## Adds installer
|
||||||
|
@ -46,6 +46,7 @@ function __PREPROCESSOR_Constants {
|
||||||
'#### OFUNCTIONS MICRO SUBSET ####'
|
'#### OFUNCTIONS MICRO SUBSET ####'
|
||||||
'#### PoorMansRandomGenerator SUBSET ####'
|
'#### PoorMansRandomGenerator SUBSET ####'
|
||||||
'#### _OFUNCTIONS_BOOTSTRAP SUBSET ####'
|
'#### _OFUNCTIONS_BOOTSTRAP SUBSET ####'
|
||||||
|
'#### RUN_DIR SUBSET ####'
|
||||||
'#### DEBUG SUBSET ####'
|
'#### DEBUG SUBSET ####'
|
||||||
'#### TrapError SUBSET ####'
|
'#### TrapError SUBSET ####'
|
||||||
'#### RemoteLogger SUBSET ####'
|
'#### RemoteLogger SUBSET ####'
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#### OFUNCTIONS MINI SUBSET ####
|
#### OFUNCTIONS MINI SUBSET ####
|
||||||
#### OFUNCTIONS MICRO SUBSET ####
|
#### OFUNCTIONS MICRO SUBSET ####
|
||||||
_OFUNCTIONS_VERSION=2.3.0-RC2
|
_OFUNCTIONS_VERSION=2.3.0-RC2
|
||||||
_OFUNCTIONS_BUILD=2018100801
|
_OFUNCTIONS_BUILD=2018100802
|
||||||
#### _OFUNCTIONS_BOOTSTRAP SUBSET ####
|
#### _OFUNCTIONS_BOOTSTRAP SUBSET ####
|
||||||
_OFUNCTIONS_BOOTSTRAP=true
|
_OFUNCTIONS_BOOTSTRAP=true
|
||||||
#### _OFUNCTIONS_BOOTSTRAP SUBSET END ####
|
#### _OFUNCTIONS_BOOTSTRAP SUBSET END ####
|
||||||
|
@ -104,6 +104,7 @@ else
|
||||||
LOG_FILE="/tmp/$PROGRAM.log"
|
LOG_FILE="/tmp/$PROGRAM.log"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#### RUN_DIR SUBSET ####
|
||||||
## Default directory where to store temporary run files
|
## Default directory where to store temporary run files
|
||||||
if [ -w /tmp ]; then
|
if [ -w /tmp ]; then
|
||||||
RUN_DIR=/tmp
|
RUN_DIR=/tmp
|
||||||
|
@ -112,6 +113,7 @@ elif [ -w /var/tmp ]; then
|
||||||
else
|
else
|
||||||
RUN_DIR=.
|
RUN_DIR=.
|
||||||
fi
|
fi
|
||||||
|
#### RUN_DIR SUBSET END ####
|
||||||
|
|
||||||
#### PoorMansRandomGenerator SUBSET ####
|
#### PoorMansRandomGenerator SUBSET ####
|
||||||
# Get a random number on Windows BusyBox alike, also works on most Unixes that have dd, if dd is not found, then return $RANDOM
|
# Get a random number on Windows BusyBox alike, also works on most Unixes that have dd, if dd is not found, then return $RANDOM
|
||||||
|
|
Loading…
Reference in New Issue