Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

having problems with ./install.copy command #44

Open
Pouya-cpu opened this issue Aug 16, 2022 · 0 comments
Open

having problems with ./install.copy command #44

Pouya-cpu opened this issue Aug 16, 2022 · 0 comments

Comments

@Pouya-cpu
Copy link

i was in the process of installing the DLCs when I get the error that the dlcs are not in the dlc folder. i did infact put the dlcs in the dlc folder before I ran the command. here is the output that I got: +./install_copy:3> source ./common
+./common:3> var_keys=( INSTALLS INSTALL INSTALL_STR APP APP_ROOT APP_MARK_EXEC_LOC APP_MARK_EXEC )
+./common:13> declare -A var_types=([$'\M-"'INSTALLS[file$'\M-"'[INSTALLfile[$'\M-"'INSTALL_STR[eval$'\M-"'[APPeval[$'\M-"'APP_ROOT[eval$'\M-"'[APP_MARK_EXEC_LOCeval[$'\M-"'APP_MARK_EXEC )
+./common:24> declare -A vars=([$'\M-"'INSTALLS['"./.installs"'$'\M-"'[INSTALL'"./.install"'[$'\M-"'INSTALL_STR['"$(echo "$INSTALLS" | head -n"$(( $INSTALL + 0 ))" | tail -n1)"'$'\M-"'[APP'"$(echo "$INSTALL_STR" | cut -d" " -f1)"'[$'\M-"'APP_ROOT['"$(echo "$INSTALL_STR" | cut -d" " -f2-)"'$'\M-"'[APP_MARK_EXEC_LOC'"$(pwd)/apps/${APP}/executables"'[$'\M-"'APP_MARK_EXEC )
+./common:34> declare -A var_deps=([$'\M-"'INSTALLS['()'$'\M-"'[INSTALL'()'[$'\M-"'INSTALL_STR['(INSTALLS INSTALL)'$'\M-"'[APP'(INSTALL_STR)'[$'\M-"'APP_ROOT['(INSTALL_STR)'$'\M-"'[APP_MARK_EXEC_LOC'(APP)'[$'\M-"'APP_MARK_EXEC )
+./common:45> declare -A vars_done=( )
+./common:72> populate
]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=]=+populate:1> key=INSTALLS
+populate:2> eval 'local this_deps=()'
+(eval):1> local this_deps=( )
+populate:8> local var_type=file
+populate:9> local var='"./.installs"'
+populate:10> [[ file == file ]]
+populate:11> eval 'local file="./.installs"'
+(eval):1> local file=./.installs
+populate:12> [[ -f ./.installs ]]
+populate:13> cat ./.installs
+populate:13> export $'INSTALLS= </home/pouya/.steam/steam/steamapps/common/Hearts of Iron IV/>\nhoi4 /home/pouya/hookey/hoi4_local'
+populate:14> vars_done[$key]=1
+populate:1> key=INSTALL
+populate:2> eval 'local this_deps=()'
+(eval):1> local this_deps=( )
+populate:8> local var_type=file
+populate:9> local var='"./.install"'
+populate:10> [[ file == file ]]
+populate:11> eval 'local file="./.install"'
+(eval):1> local file=./.install
+populate:12> [[ -f ./.install ]]
+populate:13> cat ./.install
+populate:13> export 'INSTALL=hoi4'
+populate:14> vars_done[$key]=1
+populate:1> key=INSTALL_STR
+populate:2> eval 'local this_deps=(INSTALLS INSTALL)'
+(eval):1> local this_deps=( INSTALLS INSTALL )
+populate:3> dep=INSTALLS
+populate:4> [[ 1 != 1 ]]
+populate:3> dep=INSTALL
+populate:4> [[ 1 != 1 ]]
+populate:8> local var_type=eval
+populate:9> local var='"$(echo "$INSTALLS" | head -n"$(( $INSTALL + 0 ))" | tail -n1)"'
+populate:10> [[ eval == file ]]
+populate:18> [[ eval == eval ]]
+populate:19> eval 'export INSTALL_STR="$(echo "$INSTALLS" | head -n"$(( $INSTALL + 0 ))" | tail -n1)"'
+(eval):1> echo $' </home/pouya/.steam/steam/steamapps/common/Hearts of Iron IV/>\nhoi4 /home/pouya/hookey/hoi4_local'
+(eval):1> head -n0
+(eval):1> tail -n1
+(eval):1> export INSTALL_STR=''
+populate:20> vars_done[$key]=1
+populate:1> key=APP
+populate:2> eval 'local this_deps=(INSTALL_STR)'
+(eval):1> local this_deps=( INSTALL_STR )
+populate:3> dep=INSTALL_STR
+populate:4> [[ 1 != 1 ]]
+populate:8> local var_type=eval
+populate:9> local var='"$(echo "$INSTALL_STR" | cut -d" " -f1)"'
+populate:10> [[ eval == file ]]
+populate:18> [[ eval == eval ]]
+populate:19> eval 'export APP="$(echo "$INSTALL_STR" | cut -d" " -f1)"'
+(eval):1> echo ''
+(eval):1> cut '-d ' -f1
+(eval):1> export APP=''
+populate:20> vars_done[$key]=1
+populate:1> key=APP_ROOT
+populate:2> eval 'local this_deps=(INSTALL_STR)'
+(eval):1> local this_deps=( INSTALL_STR )
+populate:3> dep=INSTALL_STR
+populate:4> [[ 1 != 1 ]]
+populate:8> local var_type=eval
+populate:9> local var='"$(echo "$INSTALL_STR" | cut -d" " -f2-)"'
+populate:10> [[ eval == file ]]
+populate:18> [[ eval == eval ]]
+populate:19> eval 'export APP_ROOT="$(echo "$INSTALL_STR" | cut -d" " -f2-)"'
+(eval):1> echo ''
+(eval):1> cut '-d ' -f2-
+(eval):1> export APP_ROOT=''
+populate:20> vars_done[$key]=1
+populate:1> key=APP_MARK_EXEC_LOC
+populate:2> eval 'local this_deps=(APP)'
+(eval):1> local this_deps=( APP )
+populate:3> dep=APP
+populate:4> [[ 1 != 1 ]]
+populate:8> local var_type=eval
+populate:9> local var='"$(pwd)/apps/${APP}/executables"'
+populate:10> [[ eval == file ]]
+populate:18> [[ eval == eval ]]
+populate:19> eval 'export APP_MARK_EXEC_LOC="$(pwd)/apps/${APP}/executables"'
+(eval):1> pwd
+(eval):1> export APP_MARK_EXEC_LOC=/home/pouya/hookey/apps//executables
+populate:20> vars_done[$key]=1
+populate:1> key=APP_MARK_EXEC
+populate:2> eval 'local this_deps=(APP_MARK_EXEC_LOC)'
+(eval):1> local this_deps=( APP_MARK_EXEC_LOC )
+populate:3> dep=APP_MARK_EXEC_LOC
+populate:4> [[ 1 != 1 ]]
+populate:8> local var_type=file
+populate:9> local var='"$APP_MARK_EXEC_LOC"'
+populate:10> [[ file == file ]]
+populate:11> eval 'local file="$APP_MARK_EXEC_LOC"'
+(eval):1> local file=/home/pouya/hookey/apps//executables
+populate:12> [[ -f /home/pouya/hookey/apps//executables ]]
+populate:16> export 'APP_MARK_EXEC='
+./common:74> [[ '' != ]]
+./common:84> echo 'Populated INSTALL_STR INSTALL INSTALLS APP_MARK_EXEC_LOC APP_ROOT APP'
Populated INSTALL_STR INSTALL INSTALLS APP_MARK_EXEC_LOC APP_ROOT APP
+./install_copy:4> fail_if_not_populated APP APP_ROOT
+fail_if_not_populated:1> var=APP
+fail_if_not_populated:2> [[ 1 != 1 ]]
+fail_if_not_populated:1> var=APP_ROOT
+fail_if_not_populated:2> [[ 1 != 1 ]]
+./install_copy:6> [[ ! -d apps//dlc/ ]]
+./install_copy:7> echo 'Place dlcs in ./apps//dlc folder (might have to create folder manually), and rerun script'
Place dlcs in ./apps//dlc folder (might have to create folder manually), and rerun script
+./install_copy:8> exit
it just doesn't want to install for whatever reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant