qusal/salt/electrum/files/client/rpc/qusal.InstallElectrum
Ben Grande 1b2f1ba941
fix: avoid operand evaluation as argument
Explicit end option parsing as the shell can be quite dangerous without
it.
2024-08-06 17:13:25 +02:00

23 lines
569 B
Bash
Executable File

#!/bin/sh
## SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
##
## SPDX-License-Identifier: AGPL-3.0-or-later
set -eu
python_dir="/usr/lib/python3/dist-packages"
bin_dir="/usr/bin"
app_dir="/usr/share/applications"
tmp_dir="/tmp/electrum-upload"
rm -rf -- "${tmp_dir}"
mkdir -p -- "${tmp_dir}"
qfile-unpacker 0 "${tmp_dir}"
cd "${tmp_dir}"
cp -r -- electrum "${python_dir}"/
cp -- electrum.desktop "${app_dir}"/
cp -- run_electrum "${bin_dir}"/electrum
## Qube needs to shutdown for the app qube to have the uploaded files.
shutdown now