kislow / kislow/tmp

F: Backup fails when directory is missing - #1

Open
#9 1 comment 0 reactions 1 assignee View on GitHub

@Zai-hub is already working on this.

Since Dec 18, 2025.

bug
Dominant language
Shell
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Description

The challenge-f.sh backup script assumes that the backup directory already exists.

On a clean system, this causes the script to fail during the copy step, often without a clear explanation of what went wrong.

The script must proactively handle backup directory creation before any file operations occur.

Acceptance Criteria

  • Check whether the backup directory exists at the start of the script
  • Create the backup directory automatically if it does not exist
  • Directory creation must be safe to run multiple times
  • Print a clear, user-friendly message when the directory is created
  • Do not attempt any file copy until the directory check is complete

Notes

  • Manual directory creation by the user should never be required
  • Directory validation should happen before any backup logic

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.