Skip to content

Commit 426fd28

Browse files
committed
handle swapfile doesn't exist cleanly
1 parent a5c5391 commit 426fd28

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/actions/deploy-ubuntu/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ runs:
2626
if $SUDO swapon --summary | grep -q '^/swapfile'; then
2727
$SUDO swapoff /swapfile
2828
fi
29-
$SUDO rm /swapfile
29+
$SUDO rm -f /swapfile
3030
3131
$SUDO fallocate -l 4GB /swapfile
3232
$SUDO chmod 600 /swapfile

0 commit comments

Comments
 (0)