steamos-community / stephensons-rocket

Stephenson's Rocket - a modified SteamOS installer, with support for older and virtualized computers
http://stephensonsrocket.horse
241 stars 44 forks source link

Check whether archive-mirror exists before creating it #77

Closed sharkwouter closed 9 years ago

directhex commented 9 years ago

I'm not going to merge this one. There are two reasons to use the "-p" flag to mkdir. Firstly, it creates full paths if needed (e.g. mkdir -p foo/bar/baz will create all three folders if needed), and secondly (the relevant one here) it does nothing if the path already exists (making this check pointless)