diff options
| author | 2024-09-02 23:13:28 -0400 | |
|---|---|---|
| committer | 2024-09-02 23:13:28 -0400 | |
| commit | 4fee5cefd6c3a1b58698a06a46bc2d25be81ea5b (patch) | |
| tree | bb6916ec762055cf815036025d0992b3aa9967bd /src/lush.c | |
| parent | searches .lush/scripts for lua files (diff) | |
fixed crash in cd when no path found
Diffstat (limited to '')
| -rw-r--r-- | src/lush.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -69,7 +69,7 @@ int lush_cd(lua_State *L, char ***args) { char *exp_path = realpath(path, extended_path); if (!exp_path) { perror("realpath"); - return 0; + return 1; } if (chdir(exp_path) != 0) { perror("lush: cd"); |
