Commit b32d450
committed
fix return code handling in stashcp
doStashCpSingle() was inconsistent in whether its return value indicated
error or success. The messed up return code worked its way down to the
exit status for the script.
I'm fixing this by making doStashCpSingle & dostashcpdirectory just return
the error status - 0 for success, 1 for failure1 parent 7150d2d commit b32d450
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
| 462 | + | |
462 | 463 | | |
463 | 464 | | |
464 | 465 | | |
| |||
705 | 706 | | |
706 | 707 | | |
707 | 708 | | |
708 | | - | |
| 709 | + | |
709 | 710 | | |
710 | 711 | | |
711 | 712 | | |
| |||
0 commit comments