|
Lines 560-566
f_sysrc_set()
Link Here
|
| 560 |
# |
560 |
# |
| 561 |
if [ "$not_found" ]; then |
561 |
if [ "$not_found" ]; then |
| 562 |
# Add a newline if missing before appending to the file |
562 |
# Add a newline if missing before appending to the file |
| 563 |
awk 'BEGIN { wc = 0 } NR == 1 { |
563 |
[ ! -e "$file" ] || awk 'BEGIN { wc = 0 } NR == 1 { |
| 564 |
(cmd = "wc -l " FILENAME) | getline |
564 |
(cmd = "wc -l " FILENAME) | getline |
| 565 |
close(cmd) |
565 |
close(cmd) |
| 566 |
wc = $1 |
566 |
wc = $1 |