Package file move - include dotfiles (#5303)

Adds shopt -s dotglob nullglob to ensure we get 'hidden' files in
our move command.
This commit is contained in:
Tom Fifield
2024-11-10 20:56:44 +08:00
committed by GitHub
parent 7bad070891
commit db76561930
3 changed files with 3 additions and 0 deletions

View File

@@ -54,6 +54,7 @@ jobs:
mkdir -p .debpkg/etc/meshtasticd/available.d
mkdir -p .debpkg/usr/lib/systemd/system/
tar -xf build.tar -C .debpkg/usr/share/doc/meshtasticd/web
shopt -s dotglob nullglob
if [ -d .debpkg/usr/share/doc/meshtasticd/web/build ]; then mv .debpkg/usr/share/doc/meshtasticd/web/build/* .debpkg/usr/share/doc/meshtasticd/web/; fi
if [ -d .debpkg/usr/share/doc/meshtasticd/web/build ]; then rmdir .debpkg/usr/share/doc/meshtasticd/web/build; fi
if [ -d .debpkg/usr/share/doc/meshtasticd/web/.DS_Store]; then rm -f .debpkg/usr/share/doc/meshtasticd/web/.DS_Store; fi