Skip to content

Commit 39dcb5c

Browse files
committed
Catch output
1 parent f0b170d commit 39dcb5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ preview:
5858
@echo "\n\n**** Preview complete.\n\n"
5959
@echo "Open the preview site at: $(PREVIEW_SITE_URL)\n\n"
6060
@echo "\n**** Cleaning up old releases (keep latest 3, skip 'current')...\n"
61-
$(REMOTE_CMD) 'cd $(RELEASES_DIR) && ls -1dt */ | grep -v "^current/?$$" | grep -v "^$(TIMESTAMP)/$$" | tail -n +4 | xargs -r echo rm -rf'
61+
$(REMOTE_CMD) bash -c "'cd $(RELEASES_DIR) && ls -1dt */ | grep -v \"^current/?$$\" | grep -v \"^$(TIMESTAMP)/$$\" | tail -n +4 | xargs -r echo rm -rf'" | tee /dev/stdout
6262

6363

6464
ifeq ($(FORCE_DEPLOY), true)

0 commit comments

Comments
 (0)