mirror of
https://github.com/plankanban/planka.git
synced 2026-02-05 00:39:58 +03:00
[PR #1409] [MERGED] Add cross-platform support for date command in backup script #1292
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/plankanban/planka/pull/1409
Author: @shanickcuello
Created: 10/31/2025
Status: ✅ Merged
Merged: 11/18/2025
Merged by: @meltyshev
Base:
master← Head:patch-1📝 Commits (1)
290da2aAdd cross-platform support for date command in backup script📊 Changes
1 file changed (+7 additions, -1 deletions)
View changed files
📝
docker-backup.sh(+7 -1)📄 Description
Description
Fixes the
date: illegal option -- -error that occurs when running backup scripts on macOS.The
datecommand has different syntax between GNU (Linux) and BSD (macOS). This PR adds cross-platform compatibility by detecting the OS and using the appropriate flag.Changes
--utcflag on Linux,-uflag on macOSType of Change
Testing
Tested on:
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.