aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos.K <freedomrfox@gmail.com>2017-06-21 21:49:53 +0300
committerChristos.K <freedomrfox@gmail.com>2017-06-21 21:49:53 +0300
commitab2eb0b066d04268ec893945693b6f25ce6f6c2f (patch)
tree6b969e6a17c0e7c12b06ad331673494327fddf8e
parentIncluded the export functions for the time-states (diff)
downloadGSE-ab2eb0b066d04268ec893945693b6f25ce6f6c2f.tar.gz
GSE-ab2eb0b066d04268ec893945693b6f25ce6f6c2f.tar.bz2
GSE-ab2eb0b066d04268ec893945693b6f25ce6f6c2f.zip
Fixed script's path issue
-rwxr-xr-xscripts/functions/sinit_functions10
-rwxr-xr-xscripts/sinit2
2 files changed, 9 insertions, 3 deletions
diff --git a/scripts/functions/sinit_functions b/scripts/functions/sinit_functions
index c044a32..dd0f694 100755
--- a/scripts/functions/sinit_functions
+++ b/scripts/functions/sinit_functions
@@ -1232,6 +1232,7 @@ _time_state() {
fi
cp -r "${CCONFDIR}" "${CLOCALLG}/states/${k}_${state_name}"
fi
+
_e_report_back "==========================================================================================="
_e_report_back "State has been saved. To refer at this state in the future, use --time-warp=[state's mark]"
_e_report_back "==========================================================================================="
@@ -1244,9 +1245,10 @@ _warping_time() {
# EXPORT STORED CONFIG.D LOCATION
CCONFDIR="${_flag_time_warp}/config.d"
export CCONFDIR
- if [[ -e "${CLOCALLG}/states/${k}_${state_name}/doscripts" ]]; then
+ ls "${_flag_time_warp}/doscripts"
+ if [[ -e "${_flag_time_warp}/doscripts" ]]; then
_flag_sdir=0
- cp "${CLOCALLG}/states/${k}_${state_name}/doscripts" "${CLOCALLG}/doscripts"
+ cp "${_flag_time_warp}/doscripts" "${CLOCALLG}/doscripts"
_flag_sdir_path="$(grep SCP "${CLOCALLG}/doscripts" | awk -F 'SCP:' '{ print $2 }')"
export _flag_sdir
export _flag_sdir_path
@@ -1282,6 +1284,10 @@ _warping_time() {
_auto_def_silence_def "$@"
_flags_stagea+=("${_flag_base}")
+ echo "base:$_flag_base"
+ echo "auto:$_flag_auto"
+ echo "sdir:$_flag_sdir"
+ echo "sdir_path:$_flag_sdir_path"
source "${CWORKDIR}/scripts/sinit" "${_flags_stagea[@]}"
fi
diff --git a/scripts/sinit b/scripts/sinit
index 570c2ca..aec763d 100755
--- a/scripts/sinit
+++ b/scripts/sinit
@@ -14,7 +14,7 @@ fi
# ENVIROMENTAL ECHO FOR TESTING
echo "$@"
-exit 1
+
# STAGE A
clear
echo "============================================================================"