feature/go
Rui Carmo 2016-04-05 12:23:50 +01:00
rodzic 0a7c07ee14
commit 204603ee97
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -607,9 +607,10 @@ def init_paths():
h.write("%s = %s\n" % (k, v))
# mark this script as executable (in case we were invoked via interpreter)
if not(os.stat(realpath(__file__)).st_mode & stat.S_IXUSR):
this_script = realpath(__file__)
if not(os.stat(this_script).st_mode & stat.S_IXUSR):
echo("Setting '%s' as executable." % this_script, fg='yellow')
os.chmod(realpath(this_script), os.stat(this_script).st_mode | stat.S_IXUSR)
os.chmod(this_script, os.stat(this_script).st_mode | stat.S_IXUSR)
@piku.command("setup:ssh")