#!/bin/bash [ ! -d prebuilt ] && git worktree add -f prebuilt prebuilt && exit 1 rm -f prebuilt/backoffice/* find packages/merchant-backoffice-ui/dist/prod/ -type f -printf '%P\n' | sort > prebuilt/backoffice/bof while IFS= read -r file; do cp packages/merchant-backoffice-ui/dist/prod/$file prebuilt/backoffice/$file done < prebuilt/backoffice/bof