mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-28 18:14:39 +08:00
Attempt to fallback to current directory if no HOME in env
This commit is contained in:
parent
46574ae0f5
commit
ed5fed8fac
1 changed files with 3 additions and 0 deletions
|
@ -323,6 +323,9 @@ const char *get_my_user_directory(void) {
|
|||
|
||||
static void set_my_user_directory(void) {
|
||||
my_user_directory = getenv("HOME");
|
||||
// if not found, default to current directory
|
||||
if (my_user_directory == NULL)
|
||||
my_user_directory = ".";
|
||||
}
|
||||
|
||||
static void show_help(bool showFullHelp, char *exec_name) {
|
||||
|
|
Loading…
Reference in a new issue