Conversation
This PR follows a suggestion in #7738 to allow teh removal of just one data set, say earth_relief without deleting all the other Earth data. In addition I added option -N which simply lists (to stdout) which directories would have been deleted.
|
I got an error with -N |
Check that argument to data was not given and check for -N in a separate loop before doing the work.
|
Yikes. OK, that is fixed now but then there was another but so now my entire data dor os gone. Fixed that too but probably smart if you try this on a .server dir while renaming your original one .server_save and then just copy a few datasets to the temporary dir to see if it works. I am running gmt get data right now... |
|
Now works. But I don't understand the error message (last one). gmt clear data -N |
|
I'll see if I can reproduce once gmt get stops... |
|
Strange since printing out the server directory is the last thing clear does so not sure what that means. |
|
OK, forgo to skip -N -V in the second loop (since I added a separate loop to detect -N). |
|
Now it is fine. |
This PR follows a suggestion in #7738 to allow the removal of just one data set, say
earth_reliefwithout deleting all the other Earth data. In addition I added option -N which simply lists (to stdout) which directories would have been deleted.