File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -326,13 +326,22 @@ function create_project {
326
326
327
327
function rm_if_exists {
328
328
if [ -d " $1 " ] ; then
329
- echo Erasing directory $1
329
+ echo Erasing directory $1
330
330
rm -rf " $1 "
331
331
else
332
332
echo Not removing directory $1 because it does not exist
333
333
fi
334
334
}
335
335
336
+ function rm_file_if_exists {
337
+ if [ -f " $1 " ] ; then
338
+ echo Erasing file $1
339
+ rm -rf " $1 "
340
+ else
341
+ echo Not removing file $1 because it does not exist
342
+ fi
343
+ }
344
+
336
345
function clean_project {
337
346
if [ -d " $PGSRC /$PGPROJECT " ] ; then
338
347
echo Cleaning out source code tree at $PGSRC /$PGPROJECT
@@ -374,6 +383,8 @@ function remove_project {
374
383
rm_if_exists " $PGWORK /$DATADIR /$PGPROJECT "
375
384
rm_if_exists " $PGINST /$PGPROJECT "
376
385
rm_if_exists " $PGSRC /$PGPROJECT "
386
+ rm_file_if_exists " $PGWORK /lastproject"
387
+
377
388
}
378
389
379
390
function optional_project {
You can’t perform that action at this time.
0 commit comments