aboutsummaryrefslogtreecommitdiffstats
path: root/src/lush.c
diff options
context:
space:
mode:
authorGravatar BanceDev 2024-09-02 23:13:28 -0400
committerGravatar BanceDev 2024-09-02 23:13:28 -0400
commit4fee5cefd6c3a1b58698a06a46bc2d25be81ea5b (patch)
treebb6916ec762055cf815036025d0992b3aa9967bd /src/lush.c
parentsearches .lush/scripts for lua files (diff)
fixed crash in cd when no path found
Diffstat (limited to '')
-rw-r--r--src/lush.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lush.c b/src/lush.c
index 0b1c21b..bf5a283 100644
--- a/src/lush.c
+++ b/src/lush.c
@@ -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");