Skip to content

Commit a1797c1

Browse files
committed
Correctly create config dir
1 parent b7311e4 commit a1797c1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

rpi/bootstrap.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
set -Eeuo pipefail
44

55
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
6-
CONFIG_ENV_FILE="$HOME/.config/ssl-remote-control/remote-control-config.env"
6+
CONFIG_DIR="$HOME/.config/ssl-remote-control"
7+
CONFIG_ENV_FILE="$CONFIG_DIR/remote-control-config.env"
78
SRC_VERSION=${1:-}
89

910
function updateSystem() {
@@ -16,7 +17,7 @@ function installService() {
1617
cp "$SCRIPT_DIR/ssl-remote-control.service" ~/.local/share/systemd/user/ssl-remote-control.service
1718
systemctl --user enable ssl-remote-control.service
1819
if [[ ! -f "${CONFIG_ENV_FILE}" ]]; then
19-
mkdir -p "${CONFIG_ENV_FILE}"
20+
mkdir -p "${CONFIG_DIR}"
2021
echo "Copying remote control configuration file to ${CONFIG_ENV_FILE}"
2122
cp "${SCRIPT_DIR}/remote-control-config.env" "${CONFIG_ENV_FILE}"
2223
else

0 commit comments

Comments
 (0)