Preserve Plymouth theme directory permissions
This commit is contained in:
@@ -54,7 +54,7 @@ for asset in bullet.png entry.png lock.png progress_bar.png; do
|
|||||||
magick "$staging_dir/$asset" -channel RGB +level-colors "#$text_hex","#$text_hex" "$staging_dir/$asset"
|
magick "$staging_dir/$asset" -channel RGB +level-colors "#$text_hex","#$text_hex" "$staging_dir/$asset"
|
||||||
done
|
done
|
||||||
|
|
||||||
sudo cp -a "$staging_dir/." "$theme_dir/"
|
sudo cp -a --no-preserve=mode,ownership "$staging_dir/." "$theme_dir/"
|
||||||
sudo plymouth-set-default-theme omarchy
|
sudo plymouth-set-default-theme omarchy
|
||||||
|
|
||||||
if omarchy-cmd-present limine-mkinitcpio; then
|
if omarchy-cmd-present limine-mkinitcpio; then
|
||||||
|
|||||||
Executable
+25
@@ -0,0 +1,25 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source "$(dirname "${BASH_SOURCE[0]}")/base-test.sh"
|
||||||
|
|
||||||
|
test_tmp=$(mktemp -d)
|
||||||
|
trap 'rm -rf "$test_tmp"' EXIT
|
||||||
|
|
||||||
|
source_dir="$test_tmp/source"
|
||||||
|
theme_dir="$test_tmp/theme"
|
||||||
|
|
||||||
|
mkdir -m 0700 "$source_dir"
|
||||||
|
mkdir -m 0755 "$theme_dir"
|
||||||
|
touch "$source_dir/logo.png"
|
||||||
|
|
||||||
|
cp -a --no-preserve=mode,ownership "$source_dir/." "$theme_dir/"
|
||||||
|
|
||||||
|
[[ $(stat -c %a "$theme_dir") == "755" ]] ||
|
||||||
|
fail "Plymouth asset copy preserves the theme directory permissions"
|
||||||
|
|
||||||
|
grep -Fq \
|
||||||
|
'cp -a --no-preserve=mode,ownership "$staging_dir/." "$theme_dir/"' \
|
||||||
|
"$ROOT/bin/omarchy-plymouth-set" ||
|
||||||
|
fail "omarchy-plymouth-set avoids copying staging directory ownership and mode"
|
||||||
|
|
||||||
|
pass "Plymouth asset copy preserves the package-owned directory metadata"
|
||||||
Reference in New Issue
Block a user