Skip to content

Commit f4a7d16

Browse files
committed
list dependencies in readme for usage from other machines
Signed-off-by: Michael Woolweaver <[email protected]>
1 parent 254cff0 commit f4a7d16

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ PADD (formerly Chronometer2) is a more expansive version of the original chronom
4646
./padd.sh --server <DOMAIN|IP>
4747
```
4848

49+
#### Dependencies
50+
- curl
51+
- jq
52+
- dig
53+
54+
4955
### Authentication
5056

5157
Pi-hole v6 uses a completely new API with a new authentication mechanism

padd.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1531,12 +1531,12 @@ check_dependencies() {
15311531
if ! command -v dig >/dev/null 2>&1; then
15321532
printf "%b" "${check_box_bad} Error!\n 'dig' is missing but required.\n"
15331533
hasDeps=false
1534-
fi
1534+
fi
15351535

1536-
if [ "${hasDeps}" = false ]; then
1536+
if ! [ "${hasDeps}" = true ]; then
15371537
printf "%b" "\n Please install the dependencies noted above.\n"
15381538
exit 1
1539-
fi
1539+
fi
15401540
}
15411541

15421542
########################################## MAIN FUNCTIONS ##########################################

0 commit comments

Comments
 (0)