1 |
On 2011-07-03, Jonathan Callen <abcd@g.o> wrote: |
2 |
> Peter Volkov wrote: |
3 |
>>> |
4 |
>>> rm -rf "${D}/usr/share/doc/aria2" |
5 |
>> |
6 |
>> || die |
7 |
> |
8 |
> `rm -f` never fails -- if the target does not exist, then rm simply returns |
9 |
> true. (The only reason it would fail that I can think of is /bin/rm not |
10 |
> existing, in which case you have a bigger problem.) |
11 |
> |
12 |
> To test, try `rm -f /nonexistant/file; echo $?` |
13 |
|
14 |
jill-zeke /var/tmp $ rm -f testfile |
15 |
rm: cannot remove `testfile': Operation not permitted |
16 |
jill-zeke /var/tmp $ echo $? |
17 |
1 |
18 |
jill-zeke /var/tmp $ rm -rf testdir |
19 |
rm: cannot remove `testdir/test': Permission denied |
20 |
jill-zeke /var/tmp $ echo $? |
21 |
1 |
22 |
|
23 |
|
24 |
-- |
25 |
Suddenly, the door crashed open. Outside, purple prose rained down |
26 |
like a bad metaphor. |
27 |
--SteveD on RPGnet |