Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions user/local/share/towel/bin/towel-common
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ function towel_export_desktop_wrapper() {

function towel_repoquery_exportables() {
local pkg="$1"
local bins_regex='/usr/bin/\S+'
local bins_regex='/usr/s?bin/\S+'
local desktops_regex='/usr/share/applications/\S+\.desktop'

dnf repoquery -l "$pkg" 2>/dev/null | grep -oE '^('"$bins_regex"'|'"$desktops_regex"')$' 2>/dev/null | sort -u
Expand Down Expand Up @@ -190,7 +190,7 @@ function towel_auto_export() {
fi

local bin_files
bin_files=$(grep -E '^/usr/bin/\S+$' <<<"$files") || true
bin_files=$(grep -E '^/usr/s?bin/\S+$' <<<"$files") || true
if [ -n "$bin_files" ]; then
while IFS= read -r bin_file; do
if [ -e "$bin_file" ]; then
Expand Down