particle-os-modules/modules/bling/installers/flatpaksync.sh
Nick Saika 17bacbe3da
fix: Fix flag ordering in set calls in scripts (#99)
The README for scripts has an incorrect use of the `set`. Where it says
to use:

	set -oue pipefail

it should be:

	set -euo pipefail

since `pipefail` is an option consumed by `set -o`.

More information: https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
2024-01-16 06:12:08 +00:00

13 lines
No EOL
376 B
Bash

#!/usr/bin/env bash
set -euo pipefail
SYSTEMD_USER_JOBS_DIR="/usr/lib/systemd/user/"
mkdir -p "$SYSTEMD_USER_JOBS_DIR"
chmod +x "$BLING_DIRECTORY"/files/usr/bin/flatpaksync/*
cp -r "$BLING_DIRECTORY"/files/usr/bin/flatpaksync/* /usr/bin/
cp -r "$BLING_DIRECTORY"/files/usr/lib/systemd/user/flatpaksync/* "$SYSTEMD_USER_JOBS_DIR"
systemctl enable --global flatpaksync.path