update cleartmp script

parent 425d5a7b
#!/bin/bash
echo "Cleaning...."
[ -d /home/"$USER"/Projects/000_distro/mkimage-profiles/build ] && \
pushd /home/"$USER"/Projects/000_distro/mkimage-profiles \
[ -d "$PROFILESDIR/build" ] && \
pushd $PROFILESDIR \
&& make clean \
&& rm -rf /tmp/.private/"$USER"/mkimage-profiles.build.* \
&& rm -rf $TMP/mkimage-profiles.build.* \
&& rm -rf ./build && popd \
&& echo "cleaning mkimage-profiles is DONE"
[ -d /tmp/.private/"$USER"/hasher-sisyphus-64 ] && rm -rf /tmp/.private/"$USER"/hasher-sisyphus-64/ \
[ -d $TMP/hasher-sisyphus-64 ] && rm -rf $TMP/hasher-sisyphus-64/ \
&& echo "cleaning hasher-sisyphus is DONE"
rmiso() {
......@@ -18,15 +19,9 @@ rmiso() {
while [ -n "$1" ]; do
case "$1" in
-h|--help)
printf \
"Использование:
./cleartmp.sh [опции]"
printf \
"Опции:
--iso -i - Удаляет iso файлы в /tmp/.private/USER/out"
printf "Использование: ./bin/cleartmp [опции]\n\n"
printf "Опции:\n"
printf " --iso -i Удаляет iso файлы в /tmp/.private/USER/out\n"
exit 0
;;
--iso|-i)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment