homebysix / recipe-robot

A kick ass tool for creating AutoPkg recipes.
Apache License 2.0
301 stars 28 forks source link

Mac with configured default RecipeCreateLocation that doesn't exist causes failure #185

Open apizz opened 3 years ago

apizz commented 3 years ago

Describe the bug When a fresh Mac has autopkg & Recipe Robot installed but the default RecipeCreateLocation directory path does not exist, produces error.

To Reproduce Steps to reproduce the behavior:

  1. On Mac with autopkg & recipe robot, delete the RecipeCreateLocation key from ~/Library/Preferences/com.elliotjordan.recipe-robot.plist
  2. Delete the default folder path from system
  3. Have Recipe Robot attempt to create recipes for an item
  4. See error

Expected behavior A message indicates that the folder doesn't exist, or Recipe Robot automatically creates this path for the user.

Screenshots

Screen Shot 2020-12-17 at 11 57 35 AM

Desktop (please complete the following information):

homebysix commented 3 years ago

Hi @apizz - Thanks for reporting this. Could you check the output you get for:

defaults read com.elliotjordan.recipe-robot Initialized
apizz commented 3 years ago
~ > defaults read-type com.elliotjordan.recipe-robot Initialized                                                                                     255 19:09:25
Type is boolean

~ > defaults read com.elliotjordan.recipe-robot Initialized                                                                                              19:07:00
1

I did some more testing and confirmed that if RecipeCreateLocation value is present but folder doesn't exist that it will create the folder.

Error was slightly different in most recent testing.

Screen Shot 2021-01-14 at 7 12 37 PM