Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update autobotchk #1584

Merged
merged 2 commits into from
Jul 29, 2024
Merged

Update autobotchk #1584

merged 2 commits into from
Jul 29, 2024

Conversation

TehPeGaSuS
Copy link
Contributor

@TehPeGaSuS TehPeGaSuS commented May 9, 2024

Found by: DasBrain
Patch by: TehPeGaSuS
Fixes: Fix tilde expansion removal on TCL 9

One-line summary:
Fix tilde expansion removal on TCL 9

Additional description (if needed):

  • Apparently, with TCL 9, the ~ expansion ability was removed. This PR should fix it.
  • Added the -p flag to the mkdir command, which stands for "parent" and it allows to create a directory hierarchy (a tree of directories) in one step, without getting an error if the parent directories already exist or if they don't exist at all.

Test cases demonstrating functionality (if applicable):

$ ./scripts/autobotchk micaela.conf -systemd

autobotchk 1.11, (C) 1999-2003 Jeff Fisher ([email protected])
                   (C) 2004-2022 Eggheads Development Team
------------------------------------------------------------

Opening 'micaela.conf' for processing ... done
Scanning the config file .................. done
Enabling user lingering...
Creating systemd directory...
Created symlink /home/bots/.config/systemd/user/default.target.wants/Micaela.service → /home/bots/.config/systemd/user/Micaela.service.
systemd job successfully installed as 'Micaela.service'.
* Use 'systemctl --user <start|stop|restart|reload|enable|disable> Micaela.service' to control your Eggdrop
Starting Eggdrop...
Success.

- Apparently, with TCL 9, the `~` expansion ability was [removed](https://core.tcl-lang.org/tips/doc/trunk/tip/602.md). This PR should fix it.
- Added the `-p` flag to the `mkdir` command, which  stands for "parent" and it allows to create a directory hierarchy (a tree of directories) in one step, without getting an error if the parent directories already exist.
@michaelortmann
Copy link
Member

LGTM

scripts/autobotchk Outdated Show resolved Hide resolved
Apparently, Tcl already creates the parent dirs as needed, so we can remove `-p`.

Fix suggested by thommey

Co-authored-by: Thomas Sader <[email protected]>
@TehPeGaSuS TehPeGaSuS closed this Jul 28, 2024
@TehPeGaSuS TehPeGaSuS reopened this Jul 28, 2024
@vanosg vanosg added this to the v1.10.0 milestone Jul 29, 2024
@vanosg vanosg merged commit 24a0849 into eggheads:develop Jul 29, 2024
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants