Skip to content

Commit 866f28a

Browse files
committed
fixed chmod permission issue
1 parent dc19d19 commit 866f28a

File tree

10 files changed

+8
-9
lines changed

10 files changed

+8
-9
lines changed

README.md

100755100644
File mode changed.

final_product/.keep

100755100644
File mode changed.

functionary_bob/bob

100755100644
File mode changed.

functionary_bob/bob.pub

100755100644
File mode changed.

functionary_carl/carl

100755100644
File mode changed.

functionary_carl/carl.pub

100755100644
File mode changed.

owner_alice/alice

100755100644
File mode changed.

owner_alice/alice.pub

100755100644
File mode changed.

owner_alice/create_layout.py

100755100644
File mode changed.

run_demo.py

100755100644
+8-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import os
22
import sys
3-
import shlex
43
import subprocess
54
import argparse
65
import time
@@ -25,15 +24,15 @@ def supply_chain():
2524
os.chdir("owner_alice")
2625
create_layout_cmd = "python create_layout.py"
2726
print create_layout_cmd
28-
subprocess.call(shlex.split(create_layout_cmd))
27+
subprocess.call(create_layout_cmd.split())
2928

3029
prompt_key("Clone source code (Bob)")
3130
os.chdir("../functionary_bob")
3231
clone_cmd = ("in-toto-run"
3332
" --step-name clone --products demo-project/foo.py"
3433
" --key bob -- git clone https://github.com/in-toto/demo-project.git")
3534
print clone_cmd
36-
subprocess.call(shlex.split(clone_cmd))
35+
subprocess.call(clone_cmd.split())
3736

3837
prompt_key("Update version number (Bob)")
3938
update_version_start_cmd = ("in-toto-record"
@@ -43,7 +42,7 @@ def supply_chain():
4342
" --materials demo-project/foo.py")
4443

4544
print update_version_start_cmd
46-
subprocess.call(shlex.split(update_version_start_cmd))
45+
subprocess.call(update_version_start_cmd.split())
4746

4847
update_version = "echo 'VERSION = \"foo-v1\"\n\nprint(\"Hello in-toto\")\n' > demo-project/foo.py"
4948
print update_version
@@ -56,7 +55,7 @@ def supply_chain():
5655
" --products demo-project/foo.py")
5756

5857
print update_version_stop_cmd
59-
subprocess.call(shlex.split(update_version_stop_cmd))
58+
subprocess.call(update_version_stop_cmd.split())
6059

6160
copytree("demo-project", "../functionary_carl/demo-project")
6261

@@ -68,7 +67,7 @@ def supply_chain():
6867
" --key carl --record-byproducts"
6968
" -- tar --exclude '.git' -zcvf demo-project.tar.gz demo-project")
7069
print package_cmd
71-
subprocess.call(shlex.split(package_cmd))
70+
subprocess.call(package_cmd.split())
7271

7372

7473
prompt_key("Create final product")
@@ -87,7 +86,7 @@ def supply_chain():
8786
" --layout root.layout"
8887
" --layout-key alice.pub")
8988
print verify_cmd
90-
retval = subprocess.call(shlex.split(verify_cmd))
89+
retval = subprocess.call(verify_cmd.split())
9190
print "Return value: " + str(retval)
9291

9392

@@ -108,7 +107,7 @@ def supply_chain():
108107
" --key carl --record-byproducts"
109108
" -- tar --exclude '.git' -zcvf demo-project.tar.gz demo-project")
110109
print package_cmd
111-
subprocess.call(shlex.split(package_cmd))
110+
subprocess.call(package_cmd.split())
112111

113112

114113
prompt_key("Create final product")
@@ -128,7 +127,7 @@ def supply_chain():
128127
" --layout-key alice.pub")
129128

130129
print verify_cmd
131-
retval = subprocess.call(shlex.split(verify_cmd))
130+
retval = subprocess.call(verify_cmd.split())
132131
print "Return value: " + str(retval)
133132

134133

0 commit comments

Comments
 (0)