mirror of
https://github.com/theupriser/steamify-cachyos.git
synced 2026-10-13 20:35:40 +02:00
gamescope-nvidia: glob instead of ls | grep (shellcheck SC2010)
Sync git.upriser.nl mirror / sync (push) Skipped
Sync git.upriser.nl mirror / sync (push) Skipped
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KkpbsMw4rQyBsxDG6ebHK2
This commit is contained in:
1 parent
b112082704
commit
27263411ba
1 file changed
+5
-2
@@ -160,8 +160,11 @@ gsn_build_package() {
|
|||||||
rm -rf "$dir"; return 1
|
rm -rf "$dir"; return 1
|
||||||
fi
|
fi
|
||||||
# Moved out, so the build folder can go.
|
# Moved out, so the build folder can go.
|
||||||
mv "$(ls "$dir"/"$GSN_PKG"-*.pkg.tar.* 2>/dev/null | grep -v -- '-debug-' | head -1)" "$cache/gamescope-local-build.pkg.tar.zst" ||
|
local f built=""
|
||||||
{ rm -rf "$dir"; return 1; }
|
for f in "$dir"/"$GSN_PKG"-*.pkg.tar.*; do
|
||||||
|
[[ -e "$f" && "$f" != *-debug-* ]] && { built="$f"; break; }
|
||||||
|
done
|
||||||
|
[[ -n "$built" ]] && mv "$built" "$cache/gamescope-local-build.pkg.tar.zst" || { rm -rf "$dir"; return 1; }
|
||||||
rm -rf "$dir"
|
rm -rf "$dir"
|
||||||
echo "$cache/gamescope-local-build.pkg.tar.zst"
|
echo "$cache/gamescope-local-build.pkg.tar.zst"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user