[PR #311] [CLOSED] Fixing "$1 not set" for HANDLER var #797

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

📋 Pull Request Information

Original PR: https://github.com/dehydrated-io/dehydrated/pull/311
Author: @a5a351e7
Created: 11/24/2016
Status: Closed

Base: masterHead: patch-1


📝 Commits (1)

  • 85458c4 Fixing "$1 not set" for HANDLER var

📊 Changes

1 file changed (+4 additions, -2 deletions)

View changed files

📝 docs/examples/hook.sh (+4 -2)

📄 Description

Just cloned your repository, configured config and all necessary files.
Started a test with dehydrated -f /etc/dehydrated/config -c and got the following

root@domain:/etc/dehydrated# /opt/dehydrated/dehydrated -f /etc/dehydrated/config -c
# INFO: Using main config file /etc/dehydrated/config
# INFO: Using additional config file /etc/dehydrated/hook.sh
/etc/dehydrated/hook.sh: Zeile 77: $1 ist nicht gesetzt.

So it seems that the script is called without parameter and got this exception. So I added in my pull request a simple if-else-statement!


🔄 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/311 **Author:** [@a5a351e7](https://github.com/a5a351e7) **Created:** 11/24/2016 **Status:** ❌ Closed **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`85458c4`](https://github.com/dehydrated-io/dehydrated/commit/85458c4eba25daf70f852eb38750fe472b7d857f) Fixing "$1 not set" for HANDLER var ### 📊 Changes **1 file changed** (+4 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docs/examples/hook.sh` (+4 -2) </details> ### 📄 Description Just cloned your repository, configured config and all necessary files. Started a test with `dehydrated -f /etc/dehydrated/config -c` and got the following ``` root@domain:/etc/dehydrated# /opt/dehydrated/dehydrated -f /etc/dehydrated/config -c # INFO: Using main config file /etc/dehydrated/config # INFO: Using additional config file /etc/dehydrated/hook.sh /etc/dehydrated/hook.sh: Zeile 77: $1 ist nicht gesetzt. ``` So it seems that the script is called without parameter and got this exception. So I added in my pull request a simple if-else-statement! --- <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:29:21 +01:00
adam closed this issue 2025-12-29 01:29:21 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#797