@@ -45,14 +45,14 @@ static void getBrewPackages(FFPackagesResult* result)
4545 if (ffStrSet (prefix ))
4646 return countBrewPackages (prefix , result );
4747
48- countBrewPackages (FASTFETCH_TARGET_DIR_ROOT "/opt/homebrew" , result );
49- countBrewPackages (FASTFETCH_TARGET_DIR_ROOT "/usr /local" , result );
48+ countBrewPackages (FASTFETCH_TARGET_DIR_ROOT "/opt/homebrew" , result );
49+ countBrewPackages (FASTFETCH_TARGET_DIR_USR " /local" , result );
5050}
5151
5252static uint32_t countMacPortsPackages (const char * dirname )
5353{
5454 FF_STRBUF_AUTO_DESTROY baseDir = ffStrbufCreateS (dirname );
55- ffStrbufAppendS (& baseDir , "/var/macports/software" );
55+ ffStrbufAppendS (& baseDir , FASTFETCH_TARGET_DIR_ROOT "/var/macports/software" );
5656
5757 return getNumElements (baseDir .chars , DT_DIR );
5858}
@@ -63,7 +63,7 @@ static uint32_t getMacPortsPackages()
6363 if (ffStrSet (prefix ))
6464 return countMacPortsPackages (prefix );
6565
66- return countMacPortsPackages (FASTFETCH_TARGET_DIR_ROOT "/opt/local" );
66+ return countMacPortsPackages (FASTFETCH_TARGET_DIR_ROOT "/opt/local" );
6767}
6868
6969static uint32_t getNixPackagesImpl (char * path )
@@ -81,7 +81,7 @@ static uint32_t getNixPackagesImpl(char* path)
8181 ffStrbufAppendS (& command , "); do if [ -d $x ]; then echo $x ; fi ; done | cut -d- -f2- | egrep '([0-9]{1,}\\.)+[0-9]{1,}' | egrep -v '\\-doc$|\\-man$|\\-info$|\\-dev$|\\-bin$|^nixos-system-nixos-' | uniq | wc -l" );
8282
8383 ffProcessAppendStdOut (& output , (char * const []) {
84- "/bin/sh" ,
84+ FASTFETCH_TARGET_DIR_ROOT "/bin/sh" ,
8585 "-c" ,
8686 command .chars ,
8787 NULL
0 commit comments