X-Git-Url: https://git.ralfj.de/schsh.git/blobdiff_plain/9e146c79ee753130f6cd89009d3b6057f96ca111..49288ecbfecba9fbc03662aaee137fc895370d99:/schsh?ds=sidebyside diff --git a/schsh b/schsh index 823eeaa..1a790bb 100755 --- a/schsh +++ b/schsh @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 import logging, logging.handlers import os, sys, shlex, pwd #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# @@ -68,7 +68,7 @@ elif len(sys.argv) == 3 and sys.argv[1] == "-c": # check if the command is allowed, and add path run = shlex.split(sys.argv[2]) if commandAllowed(run, sys.argv[2]): # this may change run, but that's okay - log("Running '"+str(run)+"'") + log("Running "+str(run)) else: print("You are not allowed to run this command.") logquit("Attempt to run invalid command '"+sys.argv[2]+"'")