|
|
@ -70,6 +70,9 @@ else |
|
|
|
if [ -n "$current" ]; then |
|
|
|
if [ -n "$current" ]; then |
|
|
|
local script="/usr/bin/script" |
|
|
|
local script="/usr/bin/script" |
|
|
|
if [[ ! "$(ps -ocommand -p $PPID | grep -v 'COMMAND' | cut -d' ' -f1 )" == "$script" ]]; then |
|
|
|
if [[ ! "$(ps -ocommand -p $PPID | grep -v 'COMMAND' | cut -d' ' -f1 )" == "$script" ]]; then |
|
|
|
|
|
|
|
if [ -f "$current/index.yaml" ]; then |
|
|
|
|
|
|
|
export repdef="$(realpath "$current/$(yq -r .repdef "$current/index.yaml")")" |
|
|
|
|
|
|
|
fi |
|
|
|
mkdir "$current/shell-logs" 2> /dev/null |
|
|
|
mkdir "$current/shell-logs" 2> /dev/null |
|
|
|
/usr/bin/script -f "$current/shell-logs/$(date +"%d-%b-%y_%H-%M-%S")_shell.log" |
|
|
|
/usr/bin/script -f "$current/shell-logs/$(date +"%d-%b-%y_%H-%M-%S")_shell.log" |
|
|
|
fi |
|
|
|
fi |
|
|
|