Skip to content

Commit dd524bf

Browse files
authored
Merge pull request #270 from Zeglius/fix/automount
fix(ublue-os-media-automount-udev): Add missing exec perms
2 parents 05d51bf + 05581b5 commit dd524bf

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

packages/ublue-os-media-automount-udev/is_in_fstab.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ set -eo pipefail
44
dev="$(findfs "$1")"
55
while read -r _what _; do
66
[[ $_what =~ ^#.* ]] && continue
7-
[[ $(findfs $"$_what") == "$dev" ]] && { echo "yes"; return 0; }
7+
[[ $(findfs $"$_what") == "$dev" ]] && { echo "yes"; exit 0; }
88
done </etc/fstab
9-
echo "no" && return 1
9+
echo "no" && exit 1

packages/ublue-os-media-automount-udev/ublue-os-media-automount-udev.spec

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Supplements: systemd-udev
2323

2424
%install
2525
install -p -Dm0644 ./60-media-automount.rules %{buildroot}%{_exec_prefix}/lib/udev/rules.d/60-media-automount.rules
26-
install -p -Dm0644 ./is_in_fstab.sh %{buildroot}%{_libexecdir}/is_in_fstab.sh
26+
install -p -Dm0755 ./is_in_fstab.sh %{buildroot}%{_libexecdir}/is_in_fstab.sh
2727

2828
%check
2929

@@ -32,5 +32,8 @@ install -p -Dm0644 ./is_in_fstab.sh %{buildroot}%{_libexecdir}/is_in_fstab.sh
3232
%{_libexecdir}/is_in_fstab.sh
3333

3434
%changelog
35+
* Mon Mar 10 2025 Zeglius <[email protected]> - 0.2
36+
- Add missing permissions and use 'exit' instead of 'return' in is_in_fstab.sh
37+
3538
* Wed Mar 05 2025 Zeglius <[email protected]> - 0.1
3639
- Initial release

0 commit comments

Comments
 (0)