We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 251f346 + af75399 commit 357f7deCopy full SHA for 357f7de
agent/util-scripts/pbench-clear-tools
@@ -60,8 +60,6 @@ tool_group_dir="tools-$group"
60
if [ -d "$tool_group_dir" ]; then
61
for this_tool_file in `/bin/ls $tool_group_dir`; do
62
if [ "$this_tool_file" == "label" ]; then
63
- echo "removing tool label: `cat $tool_group_dir/$this_tool_file`"
64
- /bin/rm -f "$tool_group_dir/$this_tool_file"
65
continue;
66
fi
67
remote=""
@@ -90,5 +88,11 @@ if [ -d "$tool_group_dir" ]; then
90
88
91
89
92
done
+ tool_files=`/bin/ls $tool_group_dir`
+ # if the only file remaining is the label, remove it
93
+ if [ "$tool_files" == "label" ]; then
94
+ echo "removing tool label: `cat $tool_group_dir/$tool_files`"
95
+ /bin/rm -f "$tool_group_dir/$tool_files"
96
+ fi
97
98
popd >/dev/null
0 commit comments