Skip to content

Commit 41cac2d

Browse files
committed
Don't (try to) print "Target is not a folder" warning when a target was not specified.
1 parent f94106c commit 41cac2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/icon_conversion.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ impl IconConversion {
608608

609609
pub fn assign_icns_using_osascript(
610610
&self,
611-
_options: &Options,
611+
options: &Options,
612612
icns_path: &Path,
613613
target_path: &Path,
614614
) -> Result<(), FolderifyError> {
@@ -651,7 +651,7 @@ impl IconConversion {
651651
eprintln!("Icon was not successfully assigned to the target folder.");
652652
exit(1);
653653
}
654-
} else {
654+
} else if options.target.is_some() {
655655
// TODO: this is usually overwritten by the progress bars.
656656
eprintln!(
657657
"Target is not a folder. Please check manually if the icon was assigned correctly."

0 commit comments

Comments
 (0)