Use /usr/bin/env, not /bin/env
/usr/bin/env is more portable (/bin/env does not exist on SUSE). Also address minor nit on review about python 3.x compatibility. Change-Id: I6bc1a579bb43664f4d2be35a96f45189a6df0e27
This commit is contained in:
parent
fac607e8d8
commit
0c2c2ab2d9
@ -1,4 +1,4 @@
|
||||
#!/bin/env python
|
||||
#!/usr/bin/env python
|
||||
|
||||
# Copyright 2012 Hewlett-Packard Development Company, L.P.
|
||||
# Copyright 2014 Red Hat, Inc.
|
||||
@ -44,7 +44,7 @@ for arg in sys.argv[1:]:
|
||||
# source vs. packages. So, if the requested service file already exists,
|
||||
# just use that.
|
||||
if os.path.exists('/lib/systemd/system/%s.service' % arg):
|
||||
print arg
|
||||
print(arg)
|
||||
else:
|
||||
print(service_map.get(arg, arg))
|
||||
sys.exit(0)
|
||||
|
Loading…
Reference in New Issue
Block a user