mirror of
https://github.com/lhns/steam-frame-nix.git
synced 2026-10-06 03:00:13 +02:00
scripts, icon-fallbacks: small robustness nits
check-signatures reads changelist.txt directly instead of looping over a one-element list; icon-fallbacks.sh declares its shell for shellcheck.
This commit is contained in:
1 parent
990ee78fe7
commit
93d061b458
2 files changed
+3
-2
No files matched your search
@@ -150,8 +150,8 @@ function bundle(name) {
|
||||
? readdirSync(stylesDir, { recursive: true }).filter((f) => f.endsWith('.css'))
|
||||
.map((f) => ({ file: join(b.styles, f), source: readFileSync(join(stylesDir, f), 'utf8') }))
|
||||
: [];
|
||||
let version = null;
|
||||
for (const f of ['changelist.txt']) if (existsSync(join(dir, f))) version = readFileSync(join(dir, f), 'utf8').trim();
|
||||
const changelist = join(dir, 'changelist.txt');
|
||||
let version = existsSync(changelist) ? readFileSync(changelist, 'utf8').trim() || null : null;
|
||||
for (const f of files ?? []) {
|
||||
if (version) break;
|
||||
try { version = /\bCLSTAMP="(\d+)"/.exec(readFileSync(join(dir, f), 'utf8'))?.[1] ?? null; } catch { /* missing file */ }
|
||||
|
||||
Reference in new issue
Block a user