test -e instead of -d
This commit is contained in:
		@@ -77,7 +77,7 @@ in
 | 
			
		||||
      wantURIs = concatMapStrings (entry: "${entryURI entry.path}\n") cfg.entries;
 | 
			
		||||
      createEntries = concatMapStrings (
 | 
			
		||||
        entry:
 | 
			
		||||
        "if [ -d '${entry.path}' ]; then ${dockutil}/bin/dockutil --no-restart --add '${entry.path}' --section ${entry.section} ${entry.options} ; fi \n "
 | 
			
		||||
        "if [ -e '${entry.path}' ]; then ${dockutil}/bin/dockutil --no-restart --add '${entry.path}' --section ${entry.section} ${entry.options} ; fi \n "
 | 
			
		||||
      ) cfg.entries;
 | 
			
		||||
    in
 | 
			
		||||
    {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user