[PR #141] [MERGED] Handle case where no files to cleanup exist. #729

Closed
opened 2025-12-29 01:28:42 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dehydrated-io/dehydrated/pull/141
Author: @fancycode
Created: 2/16/2016
Status: Merged
Merged: 2/18/2016
Merged by: @lukas2511

Base: masterHead: null_glob


📝 Commits (1)

  • ac2d830 Handle case where no files to cleanup exists.

📊 Changes

1 file changed (+3 additions, -0 deletions)

View changed files

📝 letsencrypt.sh (+3 -0)

📄 Description

This fixes cases where *.foo expands to the string *.foo instead of an empty string if no matching files exist.

I know this is a problem with my setup, but it would be nice if letsencrypt.sh could handle such cases gracefully ;-)

Error without the change (I have a chain.pem in customfolder):

Moving unused file to archive directory: customfolder/chain-*.pem
mv: cannot stat '/path/to/customfolder/chain-*.pem': No such file or directory

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dehydrated-io/dehydrated/pull/141 **Author:** [@fancycode](https://github.com/fancycode) **Created:** 2/16/2016 **Status:** ✅ Merged **Merged:** 2/18/2016 **Merged by:** [@lukas2511](https://github.com/lukas2511) **Base:** `master` ← **Head:** `null_glob` --- ### 📝 Commits (1) - [`ac2d830`](https://github.com/dehydrated-io/dehydrated/commit/ac2d8303f1f740f437e721b700b5044886557b30) Handle case where no files to cleanup exists. ### 📊 Changes **1 file changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `letsencrypt.sh` (+3 -0) </details> ### 📄 Description This fixes cases where `*.foo` expands to the string `*.foo` instead of an empty string if no matching files exist. I know this is a problem with my setup, but it would be nice if letsencrypt.sh could handle such cases gracefully ;-) Error without the change (I have a `chain.pem` in `customfolder`): ``` Moving unused file to archive directory: customfolder/chain-*.pem mv: cannot stat '/path/to/customfolder/chain-*.pem': No such file or directory ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 01:28:42 +01:00
adam closed this issue 2025-12-29 01:28:42 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#729