From: Mike Frysinger <vapier@gentoo.org>
To: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH] cgroup/cgroup_regression_test.sh: fix an issue about removing directories
Date: Mon, 04 Aug 2014 04:34:09 -0400 [thread overview]
Message-ID: <1419562.aEt90tPbov@vapier> (raw)
In-Reply-To: <1407139174-14098-1-git-send-email-gux.fnst@cn.fujitsu.com>
[-- Attachment #1.1: Type: text/plain, Size: 228 bytes --]
On Mon 04 Aug 2014 15:59:34 Xing Gu wrote:
> -rmdir -p cgroup/*
> +if [ "$(ls -A cgroup/)" ]; then
> + rmdir -p cgroup/*
> +else
> + rmdir cgroup/
> +fi
one line:
find cgroup/ -maxdepth 1 -depth -exec rmdir {} +
-mike
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
[-- Attachment #2: Type: text/plain, Size: 332 bytes --]
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
[-- Attachment #3: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2014-08-04 8:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-04 7:59 [LTP] [PATCH] cgroup/cgroup_regression_test.sh: fix an issue about removing directories Xing Gu
2014-08-04 8:34 ` Mike Frysinger [this message]
2014-08-05 15:28 ` chrubis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1419562.aEt90tPbov@vapier \
--to=vapier@gentoo.org \
--cc=ltp-list@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox