Stow: Only show unwrap message if targets are folders
This commit is contained in:
		@@ -55,6 +55,7 @@ readonly class stow
 | 
			
		||||
            if ($targetLink === $stowFile) {
 | 
			
		||||
                line("File $targetFile is already stowed from $stowFile");
 | 
			
		||||
            } else {
 | 
			
		||||
                if (is_dir($targetFile)) {
 | 
			
		||||
                    if ($this->unwrap) {
 | 
			
		||||
                        line("Unwrapping $targetFile from $targetLink");
 | 
			
		||||
                        unlink($targetFile);
 | 
			
		||||
@@ -64,6 +65,9 @@ readonly class stow
 | 
			
		||||
                    } else {
 | 
			
		||||
                        line("File $targetFile is linked from $targetLink, ignoring, add -w to unwrap");
 | 
			
		||||
                    }
 | 
			
		||||
                }else{
 | 
			
		||||
                    line("File $targetFile is already linked from $targetLink");
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user