Skip to content

Conversation

@adunsulag
Copy link
Member

Adds back in the cd /snapshots to the restore command so that the tar extraction command successfully works.

Fixes #461

adunsulag added 2 commits July 2, 2025 07:43
Adds back in the cd /snapshots to the restore command so that the tar
extraction command successfully works.
Fixing shellcheck warnings and adding in exit
# parameter 1 is identifier
restoreOpenemr() (
cd /snapshots || exit
tar -C /snapshots -xzf "${1}.tgz"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what -C is supposed to do. What did I miss?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just saw your comment in the ticket. I thought there was a reason why doing cd for the entirety of the subshell was not desirable, but I can't recall now. Anyway, let's try it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea I wondered why the cd was removed and thought there had to be a reason. The -C only works for the export of tar from what the man page and my testing showed. The file input argument ignores the -C which is annoying.

@adunsulag adunsulag merged commit 07c66e9 into openemr:master Jul 2, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: devtoolsLibrary.source fails on restoreOpenemr() command due to incorrect directory path

2 participants