Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mkexp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
esmenv
mkexp
Commits
d0f6934c
Commit
d0f6934c
authored
7 years ago
by
Karl-Hermann Wieners
Browse files
Options
Downloads
Patches
Plain Diff
Changed rmexp to remove monitoring data and empty parent directories
parent
49c1e1c7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGES.txt
+6
-0
6 additions, 0 deletions
CHANGES.txt
rmexp
+10
-1
10 additions, 1 deletion
rmexp
with
16 additions
and
1 deletion
CHANGES.txt
+
6
−
0
View file @
d0f6934c
...
...
@@ -9,6 +9,12 @@ Release Changes
Release 1.0.0
=============
Global
------
* Changed rmexp to remove empty parent directories
* Changed rmexp to remove monitoring data
Release 0.4.3
=============
...
...
This diff is collapsed.
Click to expand it.
rmexp
+
10
−
1
View file @
d0f6934c
...
...
@@ -32,7 +32,15 @@ ask_and_remove () {
echo
-n
"
$PROGRAM
: remove
${
EXP_ID
}
's
$label
directory and its contents [no]? "
>
&2
read
answer
case
"
$answer
"
in
y
*
|
Y
*
)
rm
-r
$dir
&&
echo
"
$PROGRAM
: removed '
$dir
'"
>
&2
;;
y
*
|
Y
*
)
rm
-r
"
$dir
"
&&
echo
"
$PROGRAM
: removed '
$dir
'"
>
&2
dir
=
`
dirname
"
$dir
"
`
while
rmdir
"
$dir
"
2> /dev/null
do
echo
"
$PROGRAM
: removed '
$dir
'"
>
&2
dir
=
`
dirname
"
$dir
"
`
done
;;
esac
fi
}
...
...
@@ -42,3 +50,4 @@ ask_and_remove restart $RESTART_DIR
ask_and_remove script
$SCRIPT_DIR
ask_and_remove log
$LOG_DIR
ask_and_remove data
$DATA_DIR
ask_and_remove monitoring
$MON_DIR
/
$EXP_ID
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment