Organized gen_installer.bash

This commit is contained in:
Jesse Gardner 2021-07-13 22:54:05 -07:00
parent 01944bf780
commit 62e996290e
2 changed files with 11 additions and 6 deletions

View File

@ -10,13 +10,13 @@
{ {
echo "#!/bin/bash" echo "#!/bin/bash"
echo
echo "# This script generated automatically by gen_installer.bash" echo "# This script generated automatically by gen_installer.bash"
echo "" echo ""
echo -n "archive='"
tar -cz qq2clone lv_api_do | base64
echo "'"
echo
cat inst_fragment.bash
} > qq2clone_installer.bash } > qq2clone_installer.bash
chmod +x 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

View File

@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
# This script generated automatically by gen_installer.bash # This script generated automatically by gen_installer.bash
archive='H4sIAAAAAAAAA9Q8+3PaRrf9WX/FRmZiSMA8kjS3jklLbJwwtY3jR9qM6zICLaDPQiJayTaTL/dv archive='H4sIAAAAAAAAA9Q8+3PaRrf9WX/FRmZiSMA8kjS3jklLbJwwtY3jR9qM6zICLaDPQiJayTaTL/dv
@ -537,6 +538,7 @@ jcHzrzNsx2pgTCT95lWmfz3DfW/kEYp3Iukzzv7hptN+/NcZbn8oz7hDGDiXVij/pnV+enNvHfXL
CdPr71YRYJj2S/rNkn4wiB/md7uUH/LTNf09QXiSXCoYYvrtkvSR7CPIhhnOxPePW5y6u7/HZON8 CdPr71YRYJj2S/rNkn4wiB/md7uUH/LTNf09QXiSXCoYYvrtkvSR7CPIhhnOxPePW5y6u7/HZON8
KFDmCfff21PS/wsZh/cECcL013/Xf9d/13/Xf9d/13/Xf9d/13/Xf9d/13/X5vf/Aa/zuQcA4AEA KFDmCfff21PS/wsZh/cECcL013/Xf9d/13/Xf9d/13/Xf9d/13/Xf9d/13/X5vf/Aa/zuQcA4AEA
' '
# Tail end of the installer script, following the tar archive # Tail end of the installer script, following the tar archive
[[ -z "$HOME" ]] && [[ -z "$HOME" ]] &&
@ -583,4 +585,7 @@ done
mv "${temp_dir}/lv_api_do" "${location}/" mv "${temp_dir}/lv_api_do" "${location}/"
} || { echo "Unexpected filesystem permissions error"; exit 1; } } || { 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 rm -rf "${temp_dir:?}" &>/dev/null