Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-builder
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
ximper-builder
Commits
6ff079c7
Verified
Commit
6ff079c7
authored
Feb 20, 2026
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleartmp: switch to getopt for option parsing
parent
17a7c256
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
14 deletions
+22
-14
cleartmp
bin/cleartmp
+22
-14
No files found.
bin/cleartmp
View file @
6ff079c7
...
...
@@ -39,21 +39,29 @@ rmiso() {
print_green
"iso файлы удалены"
fi
}
for
param
in
"
$@
"
;
do
case
"
$param
"
in
-h
|
--help
)
printf
"Использование: %s [опции]
\n\n
"
"
$0
"
printf
"Опции:
\n
"
printf
" --iso -i Удаляет iso файлы в /tmp/.private/USER/out
\n
"
exit
0
;;
--iso
|
-i
)
rmiso
shift
;;
OPTS
=
$(
getopt
-o
h,i
--long
help
,iso
--
"
$@
"
)
||
{
print_error
"Ошибка обработки опций."
}
eval set
--
"
$OPTS
"
while
true
;
do
case
"
$1
"
in
-h
|
--help
)
printf
"Использование: %s [опции]
\n\n
"
"
$0
"
printf
"Опции:
\n
"
printf
" -i | --iso Удаляет iso файлы в /tmp/.private/USER/out
\n
"
exit
0
;;
-i
|
--iso
)
rmiso
shift
;;
--
)
shift
break
;;
esac
shift
done
print_green
"Очистка завершена"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment