replicator/lib/ruby/pg-wal-plugin.rb
# Checks whether the given command exists. Linux only. Not silent.
Checks whether the given command exists. Linux only. Not silent.
Checks whether the given command exists . Linux only . Not silent .
def command_exists? (cmd, root)
    begin
      check_cmd = "which " + cmd
      if root
        check_cmd = get_root_cmd(check_cmd)
      end
      exec_cmd2(check_cmd, false)
      return true
    rescue SystemError
      return false
    end
  end
def command_exists? ( cmd , root ) begin check_cmd = "which " + cmd if root check_cmd = get_root_cmd ( check_cmd ) end exec_cmd2 ( check_cmd , false ) return true rescue SystemError return false end end
Checks whether the given command exists.
Checks whether the given command exists .
cmd
root