1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix unneeded bashism

Signed-off-by: Sebastien Bocahu <sebastien@ispfr.net>
This commit is contained in:
Sebastien Bocahu 2012-08-10 15:11:54 +02:00
parent 9e934acfca
commit a3ff6b1958

View file

@ -647,7 +647,7 @@ class Runner(object):
def _remote_md5(self, conn, tmp, path):
''' takes a remote md5sum without requiring python, and returns 0 if no file '''
test = "rc=0; [[ -r \"%s\" ]] || rc=2; [[ -f \"%s\" ]] || rc=1" % (path,path)
test = "rc=0; [ -r \"%s\" ] || rc=2; [ -f \"%s\" ] || rc=1" % (path,path)
md5s = [
"(/usr/bin/md5sum %s 2>/dev/null)" % path,
"(/sbin/md5sum -q %s 2>/dev/null)" % path,