Clean-up: normed out files
This commit is contained in:
@@ -6,13 +6,13 @@
|
||||
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2019/09/20 14:41:08 by tmaze #+# #+# */
|
||||
/* Updated: 2019/10/10 14:31:47 by tmaze ### ########.fr */
|
||||
/* Updated: 2019/10/17 09:59:40 by tmaze ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "minishell.h"
|
||||
|
||||
int cmd_setenv(char** argv, t_env** env)
|
||||
int cmd_setenv(char **argv, t_env **env)
|
||||
{
|
||||
t_env *new;
|
||||
|
||||
@@ -20,10 +20,14 @@ int cmd_setenv(char** argv, t_env** env)
|
||||
{
|
||||
lstaddend(env, new);
|
||||
return (0);
|
||||
} else if (argv[1]) {
|
||||
}
|
||||
else if (argv[1])
|
||||
{
|
||||
ft_printf("minishell: setenv: memory error\n");
|
||||
return (2);
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("usage: setenv [KEY]=[value]\n");
|
||||
return (1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user