File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 mkdir -p $(DESTDIR ) /usr/lib/ || true
55 install libteaiso.so $(DESTDIR ) /usr/lib/libteaiso.so
66test :
7- gcc util.c test.c -g -Wno-all -o a.out && ./a.out
7+ gcc util.c test.c -g -Wno-all -o a.out && ./a.out --variable " teaiso "
88clean :
9- rm -f libteaiso.so
9+ rm -f libteaiso.so
Original file line number Diff line number Diff line change 22char * get_argument_value (char * arg , char * val );
33int main (){
44 /*Test some stuff*/
5- warn (get_argument_value ( "variable=value " ,"variable" ) );
5+ warn ("this is warning " ,"x" );
66 out ("this is output" );
7+ err ("this is error" ,"y" );
78 disable_color ();
8- err ("this is error" );
9+ err ("this is error (nocolor)" , "z " );
910 run ("cat /etc/os-release | grep ^NAME=" );
1011}
Original file line number Diff line number Diff line change @@ -12,8 +12,9 @@ void set_rootfs(char* dir){
1212void disable_color (){
1313 nocolor = 1 ;
1414}
15+ // command pointer
16+ char * ncmd ;
1517int run (char * cmd ){
16- char * ncmd ;
1718 if (strlen (cmd )< 1 ){
1819 return 0 ;
1920 }if (strstr (cmd ,"chroot||" )){
You can’t perform that action at this time.
0 commit comments