Skip to content

Commit 1381ac8

Browse files
committed
using python3 if exist
1 parent a7c0191 commit 1381ac8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

run.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/bin/bash
22

33
cd "$(dirname "$0")"
4-
python cf-dns-update.py
4+
5+
if command -v python3 &>/dev/null; then
6+
python3 cf-dns-update.py
7+
else
8+
python cf-dns-update.py
9+
fi

0 commit comments

Comments
 (0)