Harden privileged cleanup review fixes
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
# omarchy:heredoc-expands paths=none -- the positional argument is a scalar
|
||||
sudo tee /etc/omarchy/example.conf <<EOF
|
||||
argument=$1
|
||||
command=$HOME/.local/share/omarchy/bin/example
|
||||
EOF
|
||||
@@ -0,0 +1,4 @@
|
||||
cat <<EOF |
|
||||
command=$HOME/.local/share/omarchy/bin/example
|
||||
EOF
|
||||
sudo tee /etc/omarchy/example.conf
|
||||
@@ -0,0 +1,6 @@
|
||||
tmp=/tmp/omarchy-generated
|
||||
copy=$tmp
|
||||
cat >"$tmp" <<EOF
|
||||
command=$HOME/.local/share/omarchy/bin/example
|
||||
EOF
|
||||
sudo install -m644 "$copy" /etc/omarchy/example.conf
|
||||
@@ -0,0 +1,5 @@
|
||||
tmp=/tmp/omarchy-generated
|
||||
cat >"$tmp" <<EOF
|
||||
command=$HOME/.local/share/omarchy/bin/example
|
||||
EOF
|
||||
sudo install -m644 "${tmp}" /etc/omarchy/example.conf
|
||||
Reference in New Issue
Block a user