diff --git a/gen_installer.bash b/gen_installer.bash index 3f42c22..54a48d4 100755 --- a/gen_installer.bash +++ b/gen_installer.bash @@ -10,13 +10,13 @@ { echo "#!/bin/bash" + echo echo "# This script generated automatically by gen_installer.bash" echo "" + echo -n "archive='" + tar -cz qq2clone lv_api_do | base64 + echo "'" + echo + cat inst_fragment.bash } > qq2clone_installer.bash chmod +x qq2clone_installer.bash - -echo -n "archive='" >> qq2clone_installer.bash -tar -cz qq2clone lv_api_do | base64 >> qq2clone_installer.bash -echo "'" >> qq2clone_installer.bash - -cat inst_fragment.bash >> qq2clone_installer.bash diff --git a/qq2clone_installer.bash b/qq2clone_installer.bash index 7c978e7..aeb8bb4 100755 --- a/qq2clone_installer.bash +++ b/qq2clone_installer.bash @@ -1,4 +1,5 @@ #!/bin/bash + # This script generated automatically by gen_installer.bash archive='H4sIAAAAAAAAA9Q8+3PaRrf9WX/FRmZiSMA8kjS3jklLbJwwtY3jR9qM6zICLaDPQiJayTaTL/dv @@ -537,6 +538,7 @@ jcHzrzNsx2pgTCT95lWmfz3DfW/kEYp3Iukzzv7hptN+/NcZbn8oz7hDGDiXVij/pnV+enNvHfXL CdPr71YRYJj2S/rNkn4wiB/md7uUH/LTNf09QXiSXCoYYvrtkvSR7CPIhhnOxPePW5y6u7/HZON8 KFDmCfff21PS/wsZh/cECcL013/Xf9d/13/Xf9d/13/Xf9d/13/Xf9d/13/X5vf/Aa/zuQcA4AEA ' + # Tail end of the installer script, following the tar archive [[ -z "$HOME" ]] && @@ -583,4 +585,7 @@ done mv "${temp_dir}/lv_api_do" "${location}/" } || { echo "Unexpected filesystem permissions error"; exit 1; } +# TODO Replace qq2clone first_time_setup +# TODO offer to 'install' by placing in path + rm -rf "${temp_dir:?}" &>/dev/null