From 24c8685504166f18759d2cf7cedcce3739131f98 Mon Sep 17 00:00:00 2001 From: 01rabbit Date: Sat, 21 Dec 2019 20:41:49 +0900 Subject: [PATCH] bug fix --- modules/config_module.sh | 2 +- modules/import-faraday.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/config_module.sh b/modules/config_module.sh index 6373684..ad989bb 100755 --- a/modules/config_module.sh +++ b/modules/config_module.sh @@ -116,7 +116,7 @@ function config_manage() read -n 1 -s ans if [ $ans = 1 ];then check_faraday - tmux send-keys -t $SESSION_NAME.1 "$SCRIPT_DIR/$IMPORT $WDIR $WORKSPACE" C-m + tmux send-keys -t $SESSION_NAME.1 "$INSTALL_DIR/$IMPORT $WDIR $WORKSPACE" C-m tmux select-pane -t $SESSION_NAME.0 echo -e "Please check Faraday." echo -e "Press any key to continue..." diff --git a/modules/import-faraday.sh b/modules/import-faraday.sh index 86169b8..3291212 100755 --- a/modules/import-faraday.sh +++ b/modules/import-faraday.sh @@ -3,12 +3,12 @@ source source.conf # $1 Working Directory # $2 Faraday's Workspace name -if [[ ! -d $WDIR/imported ]];then - mkdir -p $WDIR/imported +if [[ ! -d $1/imported ]];then + mkdir -p $1/imported fi -for i in `find $1 -name \*.xml -not -path "$WDIR/imported/*"` +for i in `find $1 -name $1/\*.xml -not -path "$1/imported/*"` do faraday-client --cli --workspace $2 --report $i - mv $i -t $WDIR/imported/ + mv $i -t $1/imported/ done