Skip to content

Commit 0d48d34

Browse files
committed
Bumped to 0.2.0 and minor fixes
1 parent bbccc00 commit 0d48d34

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<h1>Cardsec</h1>
22
<h3>Security Assessment Tool for Cardano SPOs</h3>
33
<h5>Funded by Project Catalyst!</h5>
4+
<h5>Thanks to Cardano Community</h5>
45
<br>
56
<p>
67
<h3> Prerequisites </h3>

cardsec/main.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def banner():
5757

5858
def setup():
5959
try:
60-
subprocess.check_output(['cardano-node','version']).decode().split()[1]
60+
subprocess.check_output(['cardano-node','version']).decode()
6161
except:
6262
print('Cardano Node not installed.')
6363
print('Skipping setup...')
@@ -108,18 +108,18 @@ def system():
108108
def info():
109109
try:
110110
node=subprocess.check_output(['cardano-node','version']).decode().split()[1]
111-
except: node="Not found."
111+
except: node="Not installed."
112112

113113
print(colored("\n-------System Info---------", "magenta"))
114114

115115
print("Distro: "+distro.id()+' '+distro.version())
116116
print("RAM Size: " +str(psutil.virtual_memory()[0]/1024/1024//1024)+' GB')
117117
print("Disk Size: " +str(psutil.disk_usage('/')[0]/1024/1024//1024)+'GB'+'\n')
118-
print("Cardano-Node: " +node)
118+
print("Cardano-Node: " + node)
119119
latest = requests.get(
120120
"https://api.github.com/repos/input-output-hk/cardano-node/releases/latest"
121121
).json()["tag_name"]
122-
if latest <= node:
122+
if latest <= node and node != "Not installed.":
123123
print(colored("Cardano-Node is up to date", "green"))
124124
else:
125125
print(colored(f"Cardano-Node {latest} update available ", "red"))
@@ -232,7 +232,7 @@ def installer():
232232
print(colored("No existing version found...", "yellow"))
233233
print(colored("Downloading Cardano-node...", "yellow"))
234234
download = subprocess.Popen(
235-
"wget https://hydra.iohk.io/job/Cardano/cardano-node/cardano-node-linux/latest-finished/download --output-document latest-node.tar.xf",
235+
"sudo wget https://hydra.iohk.io/job/Cardano/cardano-node/cardano-node-linux/latest-finished/download --output-document latest-node.tar.xf",
236236
shell = True,
237237
cwd = path
238238
)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "cardsec"
3-
version = "0.1.9"
3+
version = "0.2.0"
44
description = "System and Security Assesment Tool for Cardano SPOs."
55
authors = [
66
"Advait Joglekar <advaitjoglekar@yahoo.in>",

0 commit comments

Comments
 (0)